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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
af2e91d9
Commit
af2e91d9
authored
Nov 30, 2023
by
Oleksandr Byelkin
Committed by
Sergei Golubchik
Dec 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for the test (real fixes will be in 10.4)
parent
98a39b0c
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
10 additions
and
8 deletions
+10
-8
mysql-test/main/subselect.result
mysql-test/main/subselect.result
+1
-1
mysql-test/main/subselect.test
mysql-test/main/subselect.test
+1
-1
mysql-test/main/subselect_no_exists_to_in.result
mysql-test/main/subselect_no_exists_to_in.result
+1
-1
mysql-test/main/subselect_no_mat.result
mysql-test/main/subselect_no_mat.result
+1
-1
mysql-test/main/subselect_no_opts.result
mysql-test/main/subselect_no_opts.result
+1
-1
mysql-test/main/subselect_no_scache.result
mysql-test/main/subselect_no_scache.result
+1
-1
mysql-test/main/subselect_no_semijoin.result
mysql-test/main/subselect_no_semijoin.result
+1
-1
sql/item_func.cc
sql/item_func.cc
+1
-1
sql/sql_cte.cc
sql/sql_cte.cc
+2
-0
No files found.
mysql-test/main/subselect.result
View file @
af2e91d9
...
@@ -7535,7 +7535,7 @@ FROM x
...
@@ -7535,7 +7535,7 @@ FROM x
WHERE (SELECT (SELECT x WHERE x IN (SELECT x FROM x))) >
WHERE (SELECT (SELECT x WHERE x IN (SELECT x FROM x))) >
(SELECT (SELECT x ORDER BY x = x OR (x = 1 AND x = 1) DESC))
(SELECT (SELECT x ORDER BY x = x OR (x = 1 AND x = 1) DESC))
ORDER BY x ASC, x DESC, x;
ORDER BY x ASC, x DESC, x;
ERROR
22007: Truncated incorrect DECIMAL value:
'x'
ERROR
HY000: Restrictions imposed on recursive definitions are violated for table
'x'
DROP TABLE t1, x;
DROP TABLE t1, x;
#
#
# End of 10.4 tests
# End of 10.4 tests
...
...
mysql-test/main/subselect.test
View file @
af2e91d9
...
@@ -6386,7 +6386,7 @@ let $q= WITH RECURSIVE x (x) AS (
...
@@ -6386,7 +6386,7 @@ let $q= WITH RECURSIVE x (x) AS (
(
SELECT
(
SELECT
x
ORDER
BY
x
=
x
OR
(
x
=
1
AND
x
=
1
)
DESC
))
(
SELECT
(
SELECT
x
ORDER
BY
x
=
x
OR
(
x
=
1
AND
x
=
1
)
DESC
))
ORDER
BY
x
ASC
,
x
DESC
,
x
;
ORDER
BY
x
ASC
,
x
DESC
,
x
;
--
error
ER_
TRUNCATED_WRONG_VALU
E
--
error
ER_
NOT_STANDARD_COMPLIANT_RECURSIV
E
eval
$q
;
eval
$q
;
DROP
TABLE
t1
,
x
;
DROP
TABLE
t1
,
x
;
...
...
mysql-test/main/subselect_no_exists_to_in.result
View file @
af2e91d9
...
@@ -7535,7 +7535,7 @@ FROM x
...
@@ -7535,7 +7535,7 @@ FROM x
WHERE (SELECT (SELECT x WHERE x IN (SELECT x FROM x))) >
WHERE (SELECT (SELECT x WHERE x IN (SELECT x FROM x))) >
(SELECT (SELECT x ORDER BY x = x OR (x = 1 AND x = 1) DESC))
(SELECT (SELECT x ORDER BY x = x OR (x = 1 AND x = 1) DESC))
ORDER BY x ASC, x DESC, x;
ORDER BY x ASC, x DESC, x;
ERROR
22007: Truncated incorrect DECIMAL value:
'x'
ERROR
HY000: Restrictions imposed on recursive definitions are violated for table
'x'
DROP TABLE t1, x;
DROP TABLE t1, x;
#
#
# End of 10.4 tests
# End of 10.4 tests
...
...
mysql-test/main/subselect_no_mat.result
View file @
af2e91d9
...
@@ -7528,7 +7528,7 @@ FROM x
...
@@ -7528,7 +7528,7 @@ FROM x
WHERE (SELECT (SELECT x WHERE x IN (SELECT x FROM x))) >
WHERE (SELECT (SELECT x WHERE x IN (SELECT x FROM x))) >
(SELECT (SELECT x ORDER BY x = x OR (x = 1 AND x = 1) DESC))
(SELECT (SELECT x ORDER BY x = x OR (x = 1 AND x = 1) DESC))
ORDER BY x ASC, x DESC, x;
ORDER BY x ASC, x DESC, x;
ERROR
22007: Truncated incorrect DECIMAL value:
'x'
ERROR
HY000: Restrictions imposed on recursive definitions are violated for table
'x'
DROP TABLE t1, x;
DROP TABLE t1, x;
#
#
# End of 10.4 tests
# End of 10.4 tests
...
...
mysql-test/main/subselect_no_opts.result
View file @
af2e91d9
...
@@ -7526,7 +7526,7 @@ FROM x
...
@@ -7526,7 +7526,7 @@ FROM x
WHERE (SELECT (SELECT x WHERE x IN (SELECT x FROM x))) >
WHERE (SELECT (SELECT x WHERE x IN (SELECT x FROM x))) >
(SELECT (SELECT x ORDER BY x = x OR (x = 1 AND x = 1) DESC))
(SELECT (SELECT x ORDER BY x = x OR (x = 1 AND x = 1) DESC))
ORDER BY x ASC, x DESC, x;
ORDER BY x ASC, x DESC, x;
ERROR
22007: Truncated incorrect DECIMAL value:
'x'
ERROR
HY000: Restrictions imposed on recursive definitions are violated for table
'x'
DROP TABLE t1, x;
DROP TABLE t1, x;
#
#
# End of 10.4 tests
# End of 10.4 tests
...
...
mysql-test/main/subselect_no_scache.result
View file @
af2e91d9
...
@@ -7541,7 +7541,7 @@ FROM x
...
@@ -7541,7 +7541,7 @@ FROM x
WHERE (SELECT (SELECT x WHERE x IN (SELECT x FROM x))) >
WHERE (SELECT (SELECT x WHERE x IN (SELECT x FROM x))) >
(SELECT (SELECT x ORDER BY x = x OR (x = 1 AND x = 1) DESC))
(SELECT (SELECT x ORDER BY x = x OR (x = 1 AND x = 1) DESC))
ORDER BY x ASC, x DESC, x;
ORDER BY x ASC, x DESC, x;
ERROR
22007: Truncated incorrect DECIMAL value:
'x'
ERROR
HY000: Restrictions imposed on recursive definitions are violated for table
'x'
DROP TABLE t1, x;
DROP TABLE t1, x;
#
#
# End of 10.4 tests
# End of 10.4 tests
...
...
mysql-test/main/subselect_no_semijoin.result
View file @
af2e91d9
...
@@ -7526,7 +7526,7 @@ FROM x
...
@@ -7526,7 +7526,7 @@ FROM x
WHERE (SELECT (SELECT x WHERE x IN (SELECT x FROM x))) >
WHERE (SELECT (SELECT x WHERE x IN (SELECT x FROM x))) >
(SELECT (SELECT x ORDER BY x = x OR (x = 1 AND x = 1) DESC))
(SELECT (SELECT x ORDER BY x = x OR (x = 1 AND x = 1) DESC))
ORDER BY x ASC, x DESC, x;
ORDER BY x ASC, x DESC, x;
ERROR
22007: Truncated incorrect DECIMAL value:
'x'
ERROR
HY000: Restrictions imposed on recursive definitions are violated for table
'x'
DROP TABLE t1, x;
DROP TABLE t1, x;
#
#
# End of 10.4 tests
# End of 10.4 tests
...
...
sql/item_func.cc
View file @
af2e91d9
...
@@ -1824,7 +1824,7 @@ void Item_func_neg::fix_length_and_dec_int()
...
@@ -1824,7 +1824,7 @@ void Item_func_neg::fix_length_and_dec_int()
Use val() to get value as arg_type doesn't mean that item is
Use val() to get value as arg_type doesn't mean that item is
Item_int or Item_float due to existence of Item_param.
Item_int or Item_float due to existence of Item_param.
*/
*/
if
(
args
[
0
]
->
const_item
())
if
(
args
[
0
]
->
const_item
()
&&
!
args
[
0
]
->
is_expensive
()
)
{
{
longlong
val
=
args
[
0
]
->
val_int
();
longlong
val
=
args
[
0
]
->
val_int
();
if
((
ulonglong
)
val
>=
(
ulonglong
)
LONGLONG_MIN
&&
if
((
ulonglong
)
val
>=
(
ulonglong
)
LONGLONG_MIN
&&
...
...
sql/sql_cte.cc
View file @
af2e91d9
...
@@ -643,6 +643,8 @@ void With_element::check_dependencies_in_unit(st_select_lex_unit *unit,
...
@@ -643,6 +643,8 @@ void With_element::check_dependencies_in_unit(st_select_lex_unit *unit,
{
{
check_dependencies_in_select
(
sl
,
&
unit_ctxt_elem
,
in_subq
,
dep_map
);
check_dependencies_in_select
(
sl
,
&
unit_ctxt_elem
,
in_subq
,
dep_map
);
}
}
if
((
sl
=
unit
->
fake_select_lex
))
check_dependencies_in_select
(
sl
,
&
unit_ctxt_elem
,
in_subq
,
dep_map
);
}
}
...
...
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