Commit af2e91d9 authored by Oleksandr Byelkin's avatar Oleksandr Byelkin Committed by Sergei Golubchik

fix for the test (real fixes will be in 10.4)

parent 98a39b0c
...@@ -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
......
...@@ -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_VALUE --error ER_NOT_STANDARD_COMPLIANT_RECURSIVE
eval $q; eval $q;
DROP TABLE t1, x; DROP TABLE t1, x;
......
...@@ -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
......
...@@ -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
......
...@@ -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
......
...@@ -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
......
...@@ -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
......
...@@ -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 &&
......
...@@ -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);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment