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
ff7f4bb9
Commit
ff7f4bb9
authored
Mar 02, 2010
by
Tatiana A. Nurnberg
Browse files
Options
Browse Files
Download
Plain Diff
auto-merge
parents
3678457d
a7f63266
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 @
ff7f4bb9
...
@@ -3141,17 +3141,12 @@ AC_CONFIG_FILES(Makefile extra/Makefile mysys/Makefile dnl
...
@@ -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_CONFIG_COMMANDS
([
default], ,
test
-z
"
$CONFIG_HEADERS
"
||
echo
timestamp
>
stamp-h
)
AC_OUTPUT
AC_OUTPUT
echo
# The first line "Thank you ..." is checked in ./Do-compile to verify that configure
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
# ended sucessfully - don't remove it.
# ended sucessfully - don't remove it.
echo
echo
"Thank you for choosing MySQL!"
echo
"Thank you for choosing MySQL!"
echo
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 @
ff7f4bb9
...
@@ -241,4 +241,16 @@ DELETE FROM t1 ORDER BY (f1(10)) LIMIT 1;
...
@@ -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
ERROR 42000: Incorrect number of arguments for FUNCTION test.f1; expected 0, got 1
DROP TABLE t1;
DROP TABLE t1;
DROP FUNCTION f1;
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
End of 5.0 tests
mysql-test/t/delete.test
View file @
ff7f4bb9
...
@@ -247,4 +247,19 @@ DELETE FROM t1 ORDER BY (f1(10)) LIMIT 1;
...
@@ -247,4 +247,19 @@ DELETE FROM t1 ORDER BY (f1(10)) LIMIT 1;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
DROP
FUNCTION
f1
;
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
--
echo
End
of
5.0
tests
sql/item_timefunc.cc
View file @
ff7f4bb9
...
@@ -379,7 +379,7 @@ static bool extract_date_time(DATE_TIME_FORMAT *format,
...
@@ -379,7 +379,7 @@ static bool extract_date_time(DATE_TIME_FORMAT *format,
if
(
tmp
-
val
>
6
)
if
(
tmp
-
val
>
6
)
tmp
=
(
char
*
)
val
+
6
;
tmp
=
(
char
*
)
val
+
6
;
l_time
->
second_part
=
(
int
)
my_strtoll10
(
val
,
&
tmp
,
&
error
);
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
)
if
(
frac_part
>
0
)
l_time
->
second_part
*=
(
ulong
)
log_10_int
[
frac_part
];
l_time
->
second_part
*=
(
ulong
)
log_10_int
[
frac_part
];
val
=
tmp
;
val
=
tmp
;
...
@@ -870,7 +870,7 @@ static bool get_interval_info(const char *str,uint length,CHARSET_INFO *cs,
...
@@ -870,7 +870,7 @@ static bool get_interval_info(const char *str,uint length,CHARSET_INFO *cs,
value
=
value
*
LL
(
10
)
+
(
longlong
)
(
*
str
-
'0'
);
value
=
value
*
LL
(
10
)
+
(
longlong
)
(
*
str
-
'0'
);
if
(
transform_msec
&&
i
==
count
-
1
)
// microseconds always last
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
)
if
(
msec_length
>
0
)
value
*=
(
long
)
log_10_int
[
msec_length
];
value
*=
(
long
)
log_10_int
[
msec_length
];
}
}
...
...
sql/sql_parse.cc
View file @
ff7f4bb9
...
@@ -4009,9 +4009,9 @@ end_with_restore_list:
...
@@ -4009,9 +4009,9 @@ end_with_restore_list:
select_lex
->
where
,
select_lex
->
where
,
0
,
(
ORDER
*
)
NULL
,
(
ORDER
*
)
NULL
,
(
Item
*
)
NULL
,
0
,
(
ORDER
*
)
NULL
,
(
ORDER
*
)
NULL
,
(
Item
*
)
NULL
,
(
ORDER
*
)
NULL
,
(
ORDER
*
)
NULL
,
select_lex
->
options
|
thd
->
options
|
(
select_lex
->
options
|
thd
->
options
|
SELECT_NO_JOIN_CACHE
|
SELECT_NO_UNLOCK
|
SELECT_NO_JOIN_CACHE
|
SELECT_NO_UNLOCK
|
OPTION_SETUP_TABLES_DONE
,
OPTION_SETUP_TABLES_DONE
)
&
~
OPTION_BUFFER_RESULT
,
del_result
,
unit
,
select_lex
);
del_result
,
unit
,
select_lex
);
res
|=
thd
->
net
.
report_error
;
res
|=
thd
->
net
.
report_error
;
if
(
unlikely
(
res
))
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