Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
42585b09
Commit
42585b09
authored
Mar 02, 2010
by
Tatiana A. Nurnberg
Browse files
Options
Browse Files
Download
Plain Diff
auto-merge
parents
1fc1f462
05ff7b65
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
15 deletions
+37
-15
configure.in
configure.in
+6
-11
mysql-test/r/delete.result
mysql-test/r/delete.result
+12
-0
mysql-test/t/delete.test
mysql-test/t/delete.test
+15
-0
sql/item_timefunc.cc
sql/item_timefunc.cc
+2
-2
sql/sql_parse.cc
sql/sql_parse.cc
+2
-2
No files found.
configure.in
View file @
42585b09
...
...
@@ -3141,17 +3141,12 @@ AC_CONFIG_FILES(Makefile extra/Makefile mysys/Makefile dnl
AC_CONFIG_COMMANDS
([
default], ,
test
-z
"
$CONFIG_HEADERS
"
||
echo
timestamp
>
stamp-h
)
AC_OUTPUT
echo
echo
"MySQL has a Web site at http://www.mysql.com/ which carries details on the"
echo
"latest release, upcoming features, and other information to make your"
echo
"work or play with MySQL more productive. There you can also find"
echo
"information about mailing lists for MySQL discussion."
echo
echo
"Remember to check the platform specific part of the reference manual for"
echo
"hints about installing MySQL on your platform. Also have a look at the"
echo
"files in the Docs directory."
echo
# The following text is checked in ./Do-compile to verify that configure
# The first line "Thank you ..." is checked in ./Do-compile to verify that configure
# ended sucessfully - don't remove it.
echo
echo
"Thank you for choosing MySQL!"
echo
echo
"Remember to check the platform specific part of the reference manual"
echo
"for hints about installing MySQL on your platform."
echo
"Also have a look at the files in the Docs directory."
echo
mysql-test/r/delete.result
View file @
42585b09
...
...
@@ -241,4 +241,16 @@ DELETE FROM t1 ORDER BY (f1(10)) LIMIT 1;
ERROR 42000: Incorrect number of arguments for FUNCTION test.f1; expected 0, got 1
DROP TABLE t1;
DROP FUNCTION f1;
#
# Bug #49552 : sql_buffer_result cause crash + not found records
# in multitable delete/subquery
#
CREATE TABLE t1(a INT);
INSERT INTO t1 VALUES (1),(2),(3);
SET SESSION SQL_BUFFER_RESULT=1;
DELETE t1 FROM (SELECT SUM(a) a FROM t1) x,t1;
SET SESSION SQL_BUFFER_RESULT=DEFAULT;
SELECT * FROM t1;
a
DROP TABLE t1;
End of 5.0 tests
mysql-test/t/delete.test
View file @
42585b09
...
...
@@ -247,4 +247,19 @@ DELETE FROM t1 ORDER BY (f1(10)) LIMIT 1;
DROP
TABLE
t1
;
DROP
FUNCTION
f1
;
--
echo
#
--
echo
# Bug #49552 : sql_buffer_result cause crash + not found records
--
echo
# in multitable delete/subquery
--
echo
#
CREATE
TABLE
t1
(
a
INT
);
INSERT
INTO
t1
VALUES
(
1
),(
2
),(
3
);
SET
SESSION
SQL_BUFFER_RESULT
=
1
;
DELETE
t1
FROM
(
SELECT
SUM
(
a
)
a
FROM
t1
)
x
,
t1
;
SET
SESSION
SQL_BUFFER_RESULT
=
DEFAULT
;
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
--
echo
End
of
5.0
tests
sql/item_timefunc.cc
View file @
42585b09
...
...
@@ -379,7 +379,7 @@ static bool extract_date_time(DATE_TIME_FORMAT *format,
if
(
tmp
-
val
>
6
)
tmp
=
(
char
*
)
val
+
6
;
l_time
->
second_part
=
(
int
)
my_strtoll10
(
val
,
&
tmp
,
&
error
);
frac_part
=
6
-
(
u
int
)
(
tmp
-
val
);
frac_part
=
6
-
(
int
)
(
tmp
-
val
);
if
(
frac_part
>
0
)
l_time
->
second_part
*=
(
ulong
)
log_10_int
[
frac_part
];
val
=
tmp
;
...
...
@@ -870,7 +870,7 @@ static bool get_interval_info(const char *str,uint length,CHARSET_INFO *cs,
value
=
value
*
LL
(
10
)
+
(
longlong
)
(
*
str
-
'0'
);
if
(
transform_msec
&&
i
==
count
-
1
)
// microseconds always last
{
long
msec_length
=
6
-
(
u
int
)
(
str
-
start
);
long
msec_length
=
6
-
(
int
)
(
str
-
start
);
if
(
msec_length
>
0
)
value
*=
(
long
)
log_10_int
[
msec_length
];
}
...
...
sql/sql_parse.cc
View file @
42585b09
...
...
@@ -4009,9 +4009,9 @@ end_with_restore_list:
select_lex
->
where
,
0
,
(
ORDER
*
)
NULL
,
(
ORDER
*
)
NULL
,
(
Item
*
)
NULL
,
(
ORDER
*
)
NULL
,
select_lex
->
options
|
thd
->
options
|
(
select_lex
->
options
|
thd
->
options
|
SELECT_NO_JOIN_CACHE
|
SELECT_NO_UNLOCK
|
OPTION_SETUP_TABLES_DONE
,
OPTION_SETUP_TABLES_DONE
)
&
~
OPTION_BUFFER_RESULT
,
del_result
,
unit
,
select_lex
);
res
|=
thd
->
net
.
report_error
;
if
(
unlikely
(
res
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment