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
12bcbfc9
Commit
12bcbfc9
authored
Jun 16, 2021
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-16708: extract nonembedded part of the test into a separate file
parent
aedf3143
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
211 additions
and
159 deletions
+211
-159
mysql-test/main/ps_missed_cmds.result
mysql-test/main/ps_missed_cmds.result
+0
-50
mysql-test/main/ps_missed_cmds.test
mysql-test/main/ps_missed_cmds.test
+0
-60
mysql-test/main/ps_missed_cmds_bin_prot.result
mysql-test/main/ps_missed_cmds_bin_prot.result
+0
-20
mysql-test/main/ps_missed_cmds_bin_prot.test
mysql-test/main/ps_missed_cmds_bin_prot.test
+0
-29
mysql-test/main/ps_missed_cmds_bin_prot_not_embedded.result
mysql-test/main/ps_missed_cmds_bin_prot_not_embedded.result
+21
-0
mysql-test/main/ps_missed_cmds_bin_prot_not_embedded.test
mysql-test/main/ps_missed_cmds_bin_prot_not_embedded.test
+40
-0
mysql-test/main/ps_missed_cmds_not_embedded.result
mysql-test/main/ps_missed_cmds_not_embedded.result
+61
-0
mysql-test/main/ps_missed_cmds_not_embedded.test
mysql-test/main/ps_missed_cmds_not_embedded.test
+85
-0
mysql-test/suite/funcs_1/t/is_columns_myisam_embedded.test
mysql-test/suite/funcs_1/t/is_columns_myisam_embedded.test
+1
-0
storage/mroonga/mysql-test/mroonga/storage/t/create_table_index_parser_comment.test
.../mroonga/storage/t/create_table_index_parser_comment.test
+1
-0
storage/mroonga/mysql-test/mroonga/storage/t/create_table_index_parser_off.test
...test/mroonga/storage/t/create_table_index_parser_off.test
+1
-0
storage/mroonga/mysql-test/mroonga/wrapper/t/create_table_parser_comment.test
...l-test/mroonga/wrapper/t/create_table_parser_comment.test
+1
-0
No files found.
mysql-test/main/ps_missed_cmds.result
View file @
12bcbfc9
...
@@ -712,44 +712,6 @@ ERROR HY000: The foreign server name you are trying to reference does not exist.
...
@@ -712,44 +712,6 @@ ERROR HY000: The foreign server name you are trying to reference does not exist.
DEALLOCATE PREPARE stmt_1;
DEALLOCATE PREPARE stmt_1;
DEALLOCATE PREPARE stmt_2;
DEALLOCATE PREPARE stmt_2;
DEALLOCATE PREPARE stmt_3;
DEALLOCATE PREPARE stmt_3;
# Test case 20: Check that the CREATE EVENT/ALTER EVENT/DROP EVENT
# statements can be executed as a prepared statement
PREPARE stmt_1 FROM "CREATE EVENT e1 ON SCHEDULE AT CURRENT_TIMESTAMP - INTERVAL 1 DAY ON COMPLETION PRESERVE DO SET @a=1";
PREPARE stmt_2 FROM "ALTER EVENT e1 COMMENT 'New comment'";
PREPARE stmt_3 FROM "DROP EVENT e1";
# Create the event e1 that specifies time in past. Such event is created
# just for the sake of its existence and never will be triggered.
# Disable warnings temprorary in order to hide the following warnings
# generated in result of execution the 'CREATE EVENT' statement:
# "1544 | Event execution time is in the past. Event has been disabled"
# "1105 | Event scheduler is switched off, use SET GLOBAL event_scheduler=ON to enable it."
EXECUTE stmt_1;
# Execute the same prepared statement the second time to check that
# no internal structures used for handling the 'CREATE EVENT' statement
# were damaged. Execution of this statement the second time expectedly
# results in emitting the error ER_EVENT_ALREADY_EXISTS since the event
# with the same name has just been created.
EXECUTE stmt_1;
ERROR HY000: Event 'e1' already exists
# Alter event e1
EXECUTE stmt_2;
# Execute the same prepared statement the second time to check that
# no internal structures used for handling the 'ALTER EVENT' statement
# were damaged.
EXECUTE stmt_2;
# Drop event e1
EXECUTE stmt_3;
# Execute the same prepared statement the second time to check that
# no internal structures used for handling the 'DROP EVENT' statement
# were damaged. Execution of this statement the second time expectedly
# results in emitting the error ER_EVENT_DOESNT_EXIST since the event
# with the same name has just been dropped.
EXECUTE stmt_3;
ERROR HY000: Unknown event 'e1'
# Clean up
DEALLOCATE PREPARE stmt_1;
DEALLOCATE PREPARE stmt_2;
DEALLOCATE PREPARE stmt_3;
# Test case 21: Check that the SIGNAL and RESIGNAL statements
# Test case 21: Check that the SIGNAL and RESIGNAL statements
# can be executed as a prepared statement
# can be executed as a prepared statement
PREPARE stmt_1 FROM "SIGNAL SQLSTATE '45000' SET MYSQL_ERRNO=30001, MESSAGE_TEXT='Hello, world!'";
PREPARE stmt_1 FROM "SIGNAL SQLSTATE '45000' SET MYSQL_ERRNO=30001, MESSAGE_TEXT='Hello, world!'";
...
@@ -770,18 +732,6 @@ EXECUTE stmt_1;
...
@@ -770,18 +732,6 @@ EXECUTE stmt_1;
ERROR 0K000: RESIGNAL when handler not active
ERROR 0K000: RESIGNAL when handler not active
# Clean up
# Clean up
DEALLOCATE PREPARE stmt_1;
DEALLOCATE PREPARE stmt_1;
# Test case 22: Check that the 'SHOW RELAYLOG EVENTS' statement can be
# executed as a prepared statement.
PREPARE stmt_1 FROM 'SHOW RELAYLOG EVENTS';
EXECUTE stmt_1;
Log_name Pos Event_type Server_id End_log_pos Info
# Execute the same prepared statement the second time to check that
# no internal structures used for handling the 'SHOW RELAYLOG EVENTS'
# statement were damaged.
EXECUTE stmt_1;
Log_name Pos Event_type Server_id End_log_pos Info
# Clean up
DEALLOCATE PREPARE stmt_1;
# Test case 23: Check the 'GET DIAGNOSTICS' statement
# Test case 23: Check the 'GET DIAGNOSTICS' statement
# can be executed as a prepared statement
# can be executed as a prepared statement
PREPARE stmt_1 FROM 'GET DIAGNOSTICS CONDITION 1 @sqlstate = RETURNED_SQLSTATE, @errno = MYSQL_ERRNO, @text = MESSAGE_TEXT';
PREPARE stmt_1 FROM 'GET DIAGNOSTICS CONDITION 1 @sqlstate = RETURNED_SQLSTATE, @errno = MYSQL_ERRNO, @text = MESSAGE_TEXT';
...
...
mysql-test/main/ps_missed_cmds.test
View file @
12bcbfc9
...
@@ -517,55 +517,6 @@ DEALLOCATE PREPARE stmt_1;
...
@@ -517,55 +517,6 @@ DEALLOCATE PREPARE stmt_1;
DEALLOCATE
PREPARE
stmt_2
;
DEALLOCATE
PREPARE
stmt_2
;
DEALLOCATE
PREPARE
stmt_3
;
DEALLOCATE
PREPARE
stmt_3
;
--
echo
# Test case 20: Check that the CREATE EVENT/ALTER EVENT/DROP EVENT
--
echo
# statements can be executed as a prepared statement
PREPARE
stmt_1
FROM
"CREATE EVENT e1 ON SCHEDULE AT CURRENT_TIMESTAMP - INTERVAL 1 DAY ON COMPLETION PRESERVE DO SET @a=1"
;
PREPARE
stmt_2
FROM
"ALTER EVENT e1 COMMENT 'New comment'"
;
PREPARE
stmt_3
FROM
"DROP EVENT e1"
;
--
echo
# Create the event e1 that specifies time in past. Such event is created
--
echo
# just for the sake of its existence and never will be triggered.
--
echo
# Disable warnings temprorary in order to hide the following warnings
--
echo
# generated in result of execution the 'CREATE EVENT' statement:
--
echo
# "1544 | Event execution time is in the past. Event has been disabled"
--
echo
# "1105 | Event scheduler is switched off, use SET GLOBAL event_scheduler=ON to enable it."
--
disable_warnings
EXECUTE
stmt_1
;
--
echo
# Execute the same prepared statement the second time to check that
--
echo
# no internal structures used for handling the 'CREATE EVENT' statement
--
echo
# were damaged. Execution of this statement the second time expectedly
--
echo
# results in emitting the error ER_EVENT_ALREADY_EXISTS since the event
--
echo
# with the same name has just been created.
--
error
ER_EVENT_ALREADY_EXISTS
EXECUTE
stmt_1
;
--
enable_warnings
--
echo
# Alter event e1
EXECUTE
stmt_2
;
--
echo
# Execute the same prepared statement the second time to check that
--
echo
# no internal structures used for handling the 'ALTER EVENT' statement
--
echo
# were damaged.
EXECUTE
stmt_2
;
--
echo
# Drop event e1
EXECUTE
stmt_3
;
--
echo
# Execute the same prepared statement the second time to check that
--
echo
# no internal structures used for handling the 'DROP EVENT' statement
--
echo
# were damaged. Execution of this statement the second time expectedly
--
echo
# results in emitting the error ER_EVENT_DOESNT_EXIST since the event
--
echo
# with the same name has just been dropped.
--
error
ER_EVENT_DOES_NOT_EXIST
EXECUTE
stmt_3
;
--
echo
# Clean up
DEALLOCATE
PREPARE
stmt_1
;
DEALLOCATE
PREPARE
stmt_2
;
DEALLOCATE
PREPARE
stmt_3
;
--
echo
# Test case 21: Check that the SIGNAL and RESIGNAL statements
--
echo
# Test case 21: Check that the SIGNAL and RESIGNAL statements
--
echo
# can be executed as a prepared statement
--
echo
# can be executed as a prepared statement
PREPARE
stmt_1
FROM
"SIGNAL SQLSTATE '45000' SET MYSQL_ERRNO=30001, MESSAGE_TEXT='Hello, world!'"
;
PREPARE
stmt_1
FROM
"SIGNAL SQLSTATE '45000' SET MYSQL_ERRNO=30001, MESSAGE_TEXT='Hello, world!'"
;
...
@@ -589,17 +540,6 @@ EXECUTE stmt_1;
...
@@ -589,17 +540,6 @@ EXECUTE stmt_1;
--
echo
# Clean up
--
echo
# Clean up
DEALLOCATE
PREPARE
stmt_1
;
DEALLOCATE
PREPARE
stmt_1
;
--
echo
# Test case 22: Check that the 'SHOW RELAYLOG EVENTS' statement can be
--
echo
# executed as a prepared statement.
PREPARE
stmt_1
FROM
'SHOW RELAYLOG EVENTS'
;
EXECUTE
stmt_1
;
--
echo
# Execute the same prepared statement the second time to check that
--
echo
# no internal structures used for handling the 'SHOW RELAYLOG EVENTS'
--
echo
# statement were damaged.
EXECUTE
stmt_1
;
--
echo
# Clean up
DEALLOCATE
PREPARE
stmt_1
;
--
echo
# Test case 23: Check the 'GET DIAGNOSTICS' statement
--
echo
# Test case 23: Check the 'GET DIAGNOSTICS' statement
--
echo
# can be executed as a prepared statement
--
echo
# can be executed as a prepared statement
PREPARE
stmt_1
FROM
'GET DIAGNOSTICS CONDITION 1 @sqlstate = RETURNED_SQLSTATE, @errno = MYSQL_ERRNO, @text = MESSAGE_TEXT'
;
PREPARE
stmt_1
FROM
'GET DIAGNOSTICS CONDITION 1 @sqlstate = RETURNED_SQLSTATE, @errno = MYSQL_ERRNO, @text = MESSAGE_TEXT'
;
...
...
mysql-test/main/ps_missed_cmds_bin_prot.result
View file @
12bcbfc9
...
@@ -210,26 +210,6 @@ DROP TABLE t1;
...
@@ -210,26 +210,6 @@ DROP TABLE t1;
CREATE SERVER s FOREIGN DATA WRAPPER mysql OPTIONS (USER 'u1', HOST '127.0.0.1');
CREATE SERVER s FOREIGN DATA WRAPPER mysql OPTIONS (USER 'u1', HOST '127.0.0.1');
ALTER SERVER s OPTIONS (USER 'u2');
ALTER SERVER s OPTIONS (USER 'u2');
DROP SERVER s;
DROP SERVER s;
# Test case 18: Check that the statements CREATE EVENT/ALTER EVENT/
# DROP EVENT can be executed as a prepared statement
# Create the event e1 that specifies time in past. Such event is created
# just for the sake of its existence and never will be triggered.
# Disable warnings temprorary in order to hide the following warnings
# generated in result of execution the 'CREATE EVENT' statement:
# "1544 | Event execution time is in the past. Event has been disabled"
# "1105 | Event scheduler is switched off, use SET GLOBAL event_scheduler=ON to enable it."
CREATE EVENT e1 ON SCHEDULE AT CURRENT_TIMESTAMP - INTERVAL 1 DAY ON COMPLETION PRESERVE DO SET @a=1;
ALTER EVENT e1 COMMENT 'New comment';
DROP EVENT IF EXISTS e1;
# Test case 19: Check that the statement 'SHOW RELAYLOG EVENTS' can be
# executed as a prepared statement.
SHOW RELAYLOG EVENTS;
Log_name Pos Event_type Server_id End_log_pos Info
# Test case 20: Check the the statement 'EXECUTE IMMEDIATE'
# can be executed as a prepared statement
EXECUTE IMMEDIATE 'SELECT 1';
1
1
# Test Test case 21: Check the statements 'BACKUP'/'BACKUP STAGE'
# Test Test case 21: Check the statements 'BACKUP'/'BACKUP STAGE'
# can be executed as a prepared statement
# can be executed as a prepared statement
CREATE TABLE t1 (a INT);
CREATE TABLE t1 (a INT);
...
...
mysql-test/main/ps_missed_cmds_bin_prot.test
View file @
12bcbfc9
...
@@ -219,35 +219,6 @@ CREATE SERVER s FOREIGN DATA WRAPPER mysql OPTIONS (USER 'u1', HOST '127.0.0.1')
...
@@ -219,35 +219,6 @@ CREATE SERVER s FOREIGN DATA WRAPPER mysql OPTIONS (USER 'u1', HOST '127.0.0.1')
ALTER
SERVER
s
OPTIONS
(
USER
'u2'
);
ALTER
SERVER
s
OPTIONS
(
USER
'u2'
);
DROP
SERVER
s
;
DROP
SERVER
s
;
--
echo
# Test case 18: Check that the statements CREATE EVENT/ALTER EVENT/
--
echo
# DROP EVENT can be executed as a prepared statement
--
echo
# Create the event e1 that specifies time in past. Such event is created
--
echo
# just for the sake of its existence and never will be triggered.
--
echo
# Disable warnings temprorary in order to hide the following warnings
--
echo
# generated in result of execution the 'CREATE EVENT' statement:
--
echo
# "1544 | Event execution time is in the past. Event has been disabled"
--
echo
# "1105 | Event scheduler is switched off, use SET GLOBAL event_scheduler=ON to enable it."
--
disable_warnings
CREATE
EVENT
e1
ON
SCHEDULE
AT
CURRENT_TIMESTAMP
-
INTERVAL
1
DAY
ON
COMPLETION
PRESERVE
DO
SET
@
a
=
1
;
ALTER
EVENT
e1
COMMENT
'New comment'
;
DROP
EVENT
IF
EXISTS
e1
;
--
enable_warnings
--
echo
# Test case 19: Check that the statement 'SHOW RELAYLOG EVENTS' can be
--
echo
# executed as a prepared statement.
SHOW
RELAYLOG
EVENTS
;
--
echo
# Test case 20: Check the the statement 'EXECUTE IMMEDIATE'
--
echo
# can be executed as a prepared statement
EXECUTE
IMMEDIATE
'SELECT 1'
;
--
echo
# Test Test case 21: Check the statements 'BACKUP'/'BACKUP STAGE'
--
echo
# Test Test case 21: Check the statements 'BACKUP'/'BACKUP STAGE'
--
echo
# can be executed as a prepared statement
--
echo
# can be executed as a prepared statement
CREATE
TABLE
t1
(
a
INT
);
CREATE
TABLE
t1
(
a
INT
);
...
...
mysql-test/main/ps_missed_cmds_bin_prot_not_embedded.result
0 → 100644
View file @
12bcbfc9
#
# MDEV-16708: Unsupported commands for prepared statements
#
SET @save_storage_engine= @@default_storage_engine;
SET default_storage_engine= InnoDB;
# Test case 18: Check that the statements CREATE EVENT/ALTER EVENT/
# DROP EVENT can be executed as a prepared statement
# Create the event e1 that specifies time in past. Such event is created
# just for the sake of its existence and never will be triggered.
# Disable warnings temprorary in order to hide the following warnings
# generated in result of execution the 'CREATE EVENT' statement:
# "1544 | Event execution time is in the past. Event has been disabled"
# "1105 | Event scheduler is switched off, use SET GLOBAL event_scheduler=ON to enable it."
CREATE EVENT e1 ON SCHEDULE AT CURRENT_TIMESTAMP - INTERVAL 1 DAY ON COMPLETION PRESERVE DO SET @a=1;
ALTER EVENT e1 COMMENT 'New comment';
DROP EVENT IF EXISTS e1;
# Test case 19: Check that the statement 'SHOW RELAYLOG EVENTS' can be
# executed as a prepared statement.
SHOW RELAYLOG EVENTS;
Log_name Pos Event_type Server_id End_log_pos Info
SET default_storage_engine= @save_storage_engine;
mysql-test/main/ps_missed_cmds_bin_prot_not_embedded.test
0 → 100644
View file @
12bcbfc9
source
include
/
not_embedded
.
inc
;
--
echo
#
--
echo
# MDEV-16708: Unsupported commands for prepared statements
--
echo
#
if
(
`SELECT $PS_PROTOCOL = 0`
)
{
--
skip
Need
ps
-
protocol
}
--
source
include
/
have_innodb
.
inc
SET
@
save_storage_engine
=
@@
default_storage_engine
;
SET
default_storage_engine
=
InnoDB
;
--
echo
# Test case 18: Check that the statements CREATE EVENT/ALTER EVENT/
--
echo
# DROP EVENT can be executed as a prepared statement
--
echo
# Create the event e1 that specifies time in past. Such event is created
--
echo
# just for the sake of its existence and never will be triggered.
--
echo
# Disable warnings temprorary in order to hide the following warnings
--
echo
# generated in result of execution the 'CREATE EVENT' statement:
--
echo
# "1544 | Event execution time is in the past. Event has been disabled"
--
echo
# "1105 | Event scheduler is switched off, use SET GLOBAL event_scheduler=ON to enable it."
--
disable_warnings
CREATE
EVENT
e1
ON
SCHEDULE
AT
CURRENT_TIMESTAMP
-
INTERVAL
1
DAY
ON
COMPLETION
PRESERVE
DO
SET
@
a
=
1
;
ALTER
EVENT
e1
COMMENT
'New comment'
;
DROP
EVENT
IF
EXISTS
e1
;
--
enable_warnings
--
echo
# Test case 19: Check that the statement 'SHOW RELAYLOG EVENTS' can be
--
echo
# executed as a prepared statement.
SHOW
RELAYLOG
EVENTS
;
SET
default_storage_engine
=
@
save_storage_engine
;
mysql-test/main/ps_missed_cmds_not_embedded.result
0 → 100644
View file @
12bcbfc9
SET @save_storage_engine= @@default_storage_engine;
SET default_storage_engine= InnoDB;
#
# MDEV-16708: Unsupported commands for prepared statements
#
# Disable ps-protocol explicitly in order to test support of
# prepared statements for use case when statements passed
# to the server via text client-server protocol (in contrast
# with binary protocol used in the test file
# ps_missed_cmds_bin_prot.test)
# Test case 20: Check that the CREATE EVENT/ALTER EVENT/DROP EVENT
# statements can be executed as a prepared statement
PREPARE stmt_1 FROM "CREATE EVENT e1 ON SCHEDULE AT CURRENT_TIMESTAMP - INTERVAL 1 DAY ON COMPLETION PRESERVE DO SET @a=1";
PREPARE stmt_2 FROM "ALTER EVENT e1 COMMENT 'New comment'";
PREPARE stmt_3 FROM "DROP EVENT e1";
# Create the event e1 that specifies time in past. Such event is created
# just for the sake of its existence and never will be triggered.
# Disable warnings temprorary in order to hide the following warnings
# generated in result of execution the 'CREATE EVENT' statement:
# "1544 | Event execution time is in the past. Event has been disabled"
# "1105 | Event scheduler is switched off, use SET GLOBAL event_scheduler=ON to enable it."
EXECUTE stmt_1;
# Execute the same prepared statement the second time to check that
# no internal structures used for handling the 'CREATE EVENT' statement
# were damaged. Execution of this statement the second time expectedly
# results in emitting the error ER_EVENT_ALREADY_EXISTS since the event
# with the same name has just been created.
EXECUTE stmt_1;
ERROR HY000: Event 'e1' already exists
# Alter event e1
EXECUTE stmt_2;
# Execute the same prepared statement the second time to check that
# no internal structures used for handling the 'ALTER EVENT' statement
# were damaged.
EXECUTE stmt_2;
# Drop event e1
EXECUTE stmt_3;
# Execute the same prepared statement the second time to check that
# no internal structures used for handling the 'DROP EVENT' statement
# were damaged. Execution of this statement the second time expectedly
# results in emitting the error ER_EVENT_DOESNT_EXIST since the event
# with the same name has just been dropped.
EXECUTE stmt_3;
ERROR HY000: Unknown event 'e1'
# Clean up
DEALLOCATE PREPARE stmt_1;
DEALLOCATE PREPARE stmt_2;
DEALLOCATE PREPARE stmt_3;
# Test case 22: Check that the 'SHOW RELAYLOG EVENTS' statement can be
# executed as a prepared statement.
PREPARE stmt_1 FROM 'SHOW RELAYLOG EVENTS';
EXECUTE stmt_1;
Log_name Pos Event_type Server_id End_log_pos Info
# Execute the same prepared statement the second time to check that
# no internal structures used for handling the 'SHOW RELAYLOG EVENTS'
# statement were damaged.
EXECUTE stmt_1;
Log_name Pos Event_type Server_id End_log_pos Info
# Clean up
DEALLOCATE PREPARE stmt_1;
SET default_storage_engine= @save_storage_engine;
mysql-test/main/ps_missed_cmds_not_embedded.test
0 → 100644
View file @
12bcbfc9
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_innodb
.
inc
if
(
`SELECT $PS_PROTOCOL != 0`
)
{
--
skip
Need
regular
protocol
but
ps
-
protocol
was
specified
}
SET
@
save_storage_engine
=
@@
default_storage_engine
;
SET
default_storage_engine
=
InnoDB
;
--
echo
#
--
echo
# MDEV-16708: Unsupported commands for prepared statements
--
echo
#
--
echo
# Disable ps-protocol explicitly in order to test support of
--
echo
# prepared statements for use case when statements passed
--
echo
# to the server via text client-server protocol (in contrast
--
echo
# with binary protocol used in the test file
--
echo
# ps_missed_cmds_bin_prot.test)
--
disable_ps_protocol
--
echo
# Test case 20: Check that the CREATE EVENT/ALTER EVENT/DROP EVENT
--
echo
# statements can be executed as a prepared statement
PREPARE
stmt_1
FROM
"CREATE EVENT e1 ON SCHEDULE AT CURRENT_TIMESTAMP - INTERVAL 1 DAY ON COMPLETION PRESERVE DO SET @a=1"
;
PREPARE
stmt_2
FROM
"ALTER EVENT e1 COMMENT 'New comment'"
;
PREPARE
stmt_3
FROM
"DROP EVENT e1"
;
--
echo
# Create the event e1 that specifies time in past. Such event is created
--
echo
# just for the sake of its existence and never will be triggered.
--
echo
# Disable warnings temprorary in order to hide the following warnings
--
echo
# generated in result of execution the 'CREATE EVENT' statement:
--
echo
# "1544 | Event execution time is in the past. Event has been disabled"
--
echo
# "1105 | Event scheduler is switched off, use SET GLOBAL event_scheduler=ON to enable it."
--
disable_warnings
EXECUTE
stmt_1
;
--
echo
# Execute the same prepared statement the second time to check that
--
echo
# no internal structures used for handling the 'CREATE EVENT' statement
--
echo
# were damaged. Execution of this statement the second time expectedly
--
echo
# results in emitting the error ER_EVENT_ALREADY_EXISTS since the event
--
echo
# with the same name has just been created.
--
error
ER_EVENT_ALREADY_EXISTS
EXECUTE
stmt_1
;
--
enable_warnings
--
echo
# Alter event e1
EXECUTE
stmt_2
;
--
echo
# Execute the same prepared statement the second time to check that
--
echo
# no internal structures used for handling the 'ALTER EVENT' statement
--
echo
# were damaged.
EXECUTE
stmt_2
;
--
echo
# Drop event e1
EXECUTE
stmt_3
;
--
echo
# Execute the same prepared statement the second time to check that
--
echo
# no internal structures used for handling the 'DROP EVENT' statement
--
echo
# were damaged. Execution of this statement the second time expectedly
--
echo
# results in emitting the error ER_EVENT_DOESNT_EXIST since the event
--
echo
# with the same name has just been dropped.
--
error
ER_EVENT_DOES_NOT_EXIST
EXECUTE
stmt_3
;
--
echo
# Clean up
DEALLOCATE
PREPARE
stmt_1
;
DEALLOCATE
PREPARE
stmt_2
;
DEALLOCATE
PREPARE
stmt_3
;
--
echo
# Test case 22: Check that the 'SHOW RELAYLOG EVENTS' statement can be
--
echo
# executed as a prepared statement.
PREPARE
stmt_1
FROM
'SHOW RELAYLOG EVENTS'
;
EXECUTE
stmt_1
;
--
echo
# Execute the same prepared statement the second time to check that
--
echo
# no internal structures used for handling the 'SHOW RELAYLOG EVENTS'
--
echo
# statement were damaged.
EXECUTE
stmt_1
;
--
echo
# Clean up
DEALLOCATE
PREPARE
stmt_1
;
--
enable_warnings
--
enable_ps_protocol
SET
default_storage_engine
=
@
save_storage_engine
;
mysql-test/suite/funcs_1/t/is_columns_myisam_embedded.test
View file @
12bcbfc9
...
@@ -15,6 +15,7 @@ if (`SELECT VERSION() NOT LIKE '%embedded%'`)
...
@@ -15,6 +15,7 @@ if (`SELECT VERSION() NOT LIKE '%embedded%'`)
--
skip
Test
requires
:
embedded
server
--
skip
Test
requires
:
embedded
server
}
}
let
$engine_type
=
MyISAM
;
let
$engine_type
=
MyISAM
;
--
enable_prepare_warnings
SET
@@
session
.
sql_mode
=
'NO_ENGINE_SUBSTITUTION'
;
SET
@@
session
.
sql_mode
=
'NO_ENGINE_SUBSTITUTION'
;
--
source
suite
/
funcs_1
/
datadict
/
datadict_load
.
inc
--
source
suite
/
funcs_1
/
datadict
/
datadict_load
.
inc
...
...
storage/mroonga/mysql-test/mroonga/storage/t/create_table_index_parser_comment.test
View file @
12bcbfc9
...
@@ -28,6 +28,7 @@ CREATE TABLE diaries (
...
@@ -28,6 +28,7 @@ CREATE TABLE diaries (
COMMENT
'parser "TokenBigramSplitSymbolAlphaDigit"'
COMMENT
'parser "TokenBigramSplitSymbolAlphaDigit"'
)
DEFAULT
CHARSET
utf8
;
)
DEFAULT
CHARSET
utf8
;
--
enable_prepare_warnings
INSERT
INTO
diaries
(
body
)
VALUES
(
"will start Groonga!"
);
INSERT
INTO
diaries
(
body
)
VALUES
(
"will start Groonga!"
);
INSERT
INTO
diaries
(
body
)
VALUES
(
"starting Groonga..."
);
INSERT
INTO
diaries
(
body
)
VALUES
(
"starting Groonga..."
);
INSERT
INTO
diaries
(
body
)
VALUES
(
"started Groonga."
);
INSERT
INTO
diaries
(
body
)
VALUES
(
"started Groonga."
);
...
...
storage/mroonga/mysql-test/mroonga/storage/t/create_table_index_parser_off.test
View file @
12bcbfc9
...
@@ -27,6 +27,7 @@ CREATE TABLE variables (
...
@@ -27,6 +27,7 @@ CREATE TABLE variables (
FULLTEXT
INDEX
(
name
)
COMMENT
'parser "off"'
FULLTEXT
INDEX
(
name
)
COMMENT
'parser "off"'
)
DEFAULT
CHARSET
=
utf8
;
)
DEFAULT
CHARSET
=
utf8
;
--
enable_prepare_warnings
INSERT
INTO
variables
(
name
)
VALUES
(
"mroonga_database_path_prefix"
);
INSERT
INTO
variables
(
name
)
VALUES
(
"mroonga_database_path_prefix"
);
INSERT
INTO
variables
(
name
)
VALUES
(
"mroonga_default_tokenizer"
);
INSERT
INTO
variables
(
name
)
VALUES
(
"mroonga_default_tokenizer"
);
INSERT
INTO
variables
(
name
)
VALUES
(
"mroonga_default_wrapper_engine"
);
INSERT
INTO
variables
(
name
)
VALUES
(
"mroonga_default_wrapper_engine"
);
...
...
storage/mroonga/mysql-test/mroonga/wrapper/t/create_table_parser_comment.test
View file @
12bcbfc9
...
@@ -28,6 +28,7 @@ create table diaries (
...
@@ -28,6 +28,7 @@ create table diaries (
fulltext
index
body_index
(
body
)
fulltext
index
body_index
(
body
)
comment
'parser "TokenBigramSplitSymbolAlphaDigit"'
comment
'parser "TokenBigramSplitSymbolAlphaDigit"'
)
comment
=
'engine "innodb"'
default
charset
utf8
;
)
comment
=
'engine "innodb"'
default
charset
utf8
;
--
enable_prepare_warnings
insert
into
diaries
(
body
)
values
(
"will start Groonga!"
);
insert
into
diaries
(
body
)
values
(
"will start Groonga!"
);
insert
into
diaries
(
body
)
values
(
"starting Groonga..."
);
insert
into
diaries
(
body
)
values
(
"starting Groonga..."
);
insert
into
diaries
(
body
)
values
(
"started Groonga."
);
insert
into
diaries
(
body
)
values
(
"started Groonga."
);
...
...
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