mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merging with 5.1-rpl
This commit is contained in:
@ -740,4 +740,9 @@ select 1;
|
||||
1
|
||||
-- a comment for the server;
|
||||
mysqltest: At line 1: Found line beginning with -- that didn't contain a valid mysqltest command, check your syntax or use # if you intended to write a comment
|
||||
con1
|
||||
default
|
||||
con1
|
||||
default
|
||||
con1
|
||||
End of tests
|
||||
|
@ -2183,5 +2183,29 @@ select 1;
|
||||
--exec echo "--select 1;" | $MYSQL_TEST 2>&1
|
||||
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# BUG#35701: please allow test language variables in connection and sync_slave_with_master
|
||||
# Test that "connection $variable" works and that $CURRENT_CONNECTION has the right value.
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
connect (con1,localhost,root,,);
|
||||
--echo $CURRENT_CONNECTION
|
||||
|
||||
connection default;
|
||||
--echo $CURRENT_CONNECTION
|
||||
|
||||
connection con1;
|
||||
--echo $CURRENT_CONNECTION
|
||||
|
||||
let $x= default;
|
||||
let $y= con1;
|
||||
|
||||
connection $x;
|
||||
--echo $CURRENT_CONNECTION
|
||||
|
||||
connection $y;
|
||||
--echo $CURRENT_CONNECTION
|
||||
|
||||
|
||||
--echo End of tests
|
||||
|
||||
|
Reference in New Issue
Block a user