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
f536974b
Commit
f536974b
authored
Apr 29, 2021
by
Dmitry Shulga
Committed by
Sergei Golubchik
Jun 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-16708: Unsupported commands for prepared statements
Fixed failures of the tests main.compound, main.union
parent
8754fce8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
mysql-test/main/compound.result
mysql-test/main/compound.result
+2
-2
mysql-test/main/compound.test
mysql-test/main/compound.test
+2
-2
mysql-test/main/union.test
mysql-test/main/union.test
+1
-0
No files found.
mysql-test/main/compound.result
View file @
f536974b
...
...
@@ -101,7 +101,7 @@ t1
t2
t3
t4
set @a=0
;
set @a=0
|
repeat
set @a = @a + 1;
until @a > 5
...
...
@@ -154,7 +154,7 @@ master-bin.000001 # Query # # use `test`; insert t1 values( NAME_CONST('a',4)+3)
master-bin.000001 # Query # # COMMIT
drop function fn|
drop table t1|
set @@sql_mode="STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
;
set @@sql_mode="STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
|
begin not atomic select @@sql_mode; end|
@@sql_mode
STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
...
...
mysql-test/main/compound.test
View file @
f536974b
...
...
@@ -94,7 +94,7 @@ end loop|
show
tables
|
# REPEAT
set
@
a
=
0
;
set
@
a
=
0
|
repeat
set
@
a
=
@
a
+
1
;
until
@
a
>
5
...
...
@@ -146,7 +146,7 @@ drop table t1|
# MDEV-6609 SQL inside an anonymous block is executed with wrong SQL_MODE
#
set
@@
sql_mode
=
"STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
;
set
@@
sql_mode
=
"STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
|
begin
not
atomic
select
@@
sql_mode
;
end
|
create
table
t1
(
a
int
)
|
select
a
from
t1
having
a
>
1
|
...
...
mysql-test/main/union.test
View file @
f536974b
...
...
@@ -93,6 +93,7 @@ select 1 as a,(select a union select a);
SELECT
@
a
:=
1
UNION
SELECT
@
a
:=@
a
+
1
;
--
error
1054
(
SELECT
1
)
UNION
(
SELECT
2
)
ORDER
BY
(
SELECT
a
);
--
sorted_result
(
SELECT
1
,
3
)
UNION
(
SELECT
2
,
1
)
ORDER
BY
(
SELECT
2
);
#
...
...
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