mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
25 lines
567 B
Text
25 lines
567 B
Text
-- source include/not_embedded.inc
|
|
|
|
# Do some valid changes, ensure they are successful
|
|
SET @sql := "CREATE TABLE test.t1 (i INT) Engine=MEMORY";
|
|
CALL sys.execute_prepared_stmt(@sql);
|
|
|
|
SHOW CREATE TABLE test.t1;
|
|
|
|
SET @sql := CONCAT('INSERT INTO test.t1 VALUES (', 1, ')');
|
|
CALL sys.execute_prepared_stmt(@sql);
|
|
|
|
SELECT * FROM test.t1;
|
|
|
|
SET @sql := "DROP TABLE test.t1";
|
|
CALL sys.execute_prepared_stmt(@sql);
|
|
|
|
SHOW TABLES;
|
|
|
|
SET @sql = NULL;
|
|
|
|
# Invalid inputs
|
|
-- error S45000
|
|
CALL sys.execute_prepared_stmt(NULL);
|
|
-- error S45000
|
|
CALL sys.execute_prepared_stmt('foo');
|