mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	client/mysqldump.c: A post-merge fix - 'sock' was renamed to 'mysql' mysql-test/r/events_bugs.result: A post merge fix: now we strip rear comments from the query before it gets into the log. mysql-test/r/func_group.result: A post merge fix: default clause is now printed uppercase. mysql-test/r/im_life_cycle.result: Fix my mistake in manual resolve. mysql-test/r/mysqlcheck.result: use test; - after we drop client_test_db there is no current database. This cleanup is present in 5.1 only, but the test that was added in 5.0 assumes there is a current database, test. mysql-test/r/mysqldump.result: Ignore results of execution of mysqldump: we can't rely on MASTER_LOG_POS in test results, it's different for statement and row level logging. mysql-test/r/mysqlshow.result: A post-merge fix: information schema contains a few more tables in 5.1 mysql-test/r/mysqltest.result: A post merge fix: add 5.1 test end separator. mysql-test/r/ndb_basic.result: A post-merge fix: add test end separators. mysql-test/r/rpl_switch_stm_row_mixed.result: A post merge fix: length of varbinary column is now 3 times less. Assuming a side effect of some other change. Length of any field is not relevant in this test. mysql-test/r/rpl_view.result: Add an end of test marker. mysql-test/r/show_check.result: Remove duplicate results. Add results from a merged test case. mysql-test/r/sp-error.result: Add test end separators. mysql-test/r/sp-security.result: Post-merge fix: use test after the current database is dropped. mysql-test/r/sp.result: Remove a duplicate result (bad merge that left a copy of the test case for Bug#19862 in the test suite). mysql-test/r/strict.result: An after-merge fix for a new test case: in 5.1 we issue a more accurate error message: "Incorrect value" instead of "Truncated value". I reason it so that in case of an error nothing is truncated, really. Also found similar changes in other test cases. mysql-test/r/type_datetime.result: Fix the text of an error. mysql-test/r/union.result: A post-merge fix: CHARACTER SET is now uppercase. mysql-test/t/mysqlcheck.test: A post-merge fix: use test, after current database is dropped, there is no current database. mysql-test/t/mysqldump.test: Disable result log: it's dependent on binlog position. mysql-test/t/sp-security.test: use test sql/item_sum.cc: Adjust the call to the constructor after the merge. sql/sp_head.cc: Add a missing DBUG_VOID_RETURN, move security checks out of execute_trigger to Table_triggers_list: in 5.1 we check for TRIGGER privilege, not SUPER privilege to execute triggers, so these checks lack table context inside execute_trigger and have to be performed when we have table object on hand. sql/sql_db.cc: A post-merge fix: adjust load_db_opt_by_name and check_db_dir_existence (new functions added in 5.0) to be tablename-to-filename encoding friendly. sql/sql_lex.cc: A post-merge fix: make skip_rear_comments operate on const uchar *s. sql/sql_lex.h: A post-merge fix. sql/sql_show.cc: A post-merge fix: fix a bad merge, rename orig_sql_command -> sql_command. sql/sql_trigger.cc: A post-merge fix: move security checks to process_triggers from execute_trigger. sql/sql_view.cc: Adjust to the new signature of skip_rear_comments. sql/sql_yacc.yy: Adjust to the new signature of init_strings.
		
			
				
	
	
		
			478 lines
		
	
	
		
			17 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			478 lines
		
	
	
		
			17 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| select 0 as "before_use_test" ;
 | |
| before_use_test
 | |
| 0
 | |
| select otto from (select 1 as otto) as t1;
 | |
| otto
 | |
| 1
 | |
| select otto from (select 1 as otto) as t1;
 | |
| otto
 | |
| 1
 | |
| mysqltest: At line 1: query 'select friedrich from (select 1 as otto) as t1' failed: 1054: Unknown column 'friedrich' in 'field list'
 | |
| select friedrich from (select 1 as otto) as t1;
 | |
| ERROR 42S22: Unknown column 'friedrich' in 'field list'
 | |
| select otto from (select 1 as otto) as t1;
 | |
| otto
 | |
| 1
 | |
| mysqltest: At line 1: query 'select otto from (select 1 as otto) as t1' succeeded - should have failed with sqlstate 42S22...
 | |
| select friedrich from (select 1 as otto) as t1;
 | |
| ERROR 42S22: Unknown column 'friedrich' in 'field list'
 | |
| mysqltest: At line 1: query 'select friedrich from (select 1 as otto) as t1' failed with wrong sqlstate 42S22: 'Unknown column 'friedrich' in 'field list'', instead of 00000...
 | |
| select otto from (select 1 as otto) as t1;
 | |
| otto
 | |
| 1
 | |
| select 0 as "after_successful_stmt_errno" ;
 | |
| after_successful_stmt_errno
 | |
| 0
 | |
| garbage ;
 | |
| ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
 | |
| select 1064 as "after_wrong_syntax_errno" ;
 | |
| after_wrong_syntax_errno
 | |
| 1064
 | |
| garbage ;
 | |
| ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
 | |
| select 1064 as "after_let_var_equal_value" ;
 | |
| after_let_var_equal_value
 | |
| 1064
 | |
| garbage ;
 | |
| ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
 | |
| set @my_var= 'abc' ;
 | |
| select 0 as "after_set_var_equal_value" ;
 | |
| after_set_var_equal_value
 | |
| 0
 | |
| garbage ;
 | |
| ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
 | |
| select 1064 as "after_disable_warnings_command" ;
 | |
| after_disable_warnings_command
 | |
| 1064
 | |
| drop table if exists t1 ;
 | |
| garbage ;
 | |
| ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
 | |
| drop table if exists t1 ;
 | |
| select 0 as "after_disable_warnings" ;
 | |
| after_disable_warnings
 | |
| 0
 | |
| garbage ;
 | |
| ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
 | |
| select 3 from t1 ;
 | |
| ERROR 42S02: Table 'test.t1' doesn't exist
 | |
| select 1146 as "after_minus_masked" ;
 | |
| after_minus_masked
 | |
| 1146
 | |
| garbage ;
 | |
| ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
 | |
| select 3 from t1 ;
 | |
| ERROR 42S02: Table 'test.t1' doesn't exist
 | |
| select 1146 as "after_!_masked" ;
 | |
| after_!_masked
 | |
| 1146
 | |
| garbage ;
 | |
| ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
 | |
| select -1 as "after_let_errno_equal_value" ;
 | |
| after_let_errno_equal_value
 | |
| -1
 | |
| garbage ;
 | |
| ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
 | |
| prepare stmt from "select 3 from t1" ;
 | |
| ERROR 42S02: Table 'test.t1' doesn't exist
 | |
| select 1146 as "after_failing_prepare" ;
 | |
| after_failing_prepare
 | |
| 1146
 | |
| create table t1 ( f1 char(10));
 | |
| garbage ;
 | |
| ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
 | |
| prepare stmt from "select 3 from t1" ;
 | |
| select 0 as "after_successful_prepare" ;
 | |
| after_successful_prepare
 | |
| 0
 | |
| garbage ;
 | |
| ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
 | |
| execute stmt;
 | |
| 3
 | |
| select 0 as "after_successful_execute" ;
 | |
| after_successful_execute
 | |
| 0
 | |
| drop table t1;
 | |
| garbage ;
 | |
| ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
 | |
| execute stmt;
 | |
| ERROR 42S02: Table 'test.t1' doesn't exist
 | |
| select 1146 as "after_failing_execute" ;
 | |
| after_failing_execute
 | |
| 1146
 | |
| garbage ;
 | |
| ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
 | |
| execute __stmt_;
 | |
| ERROR HY000: Unknown prepared statement handler (__stmt_) given to EXECUTE
 | |
| select 1243 as "after_failing_execute" ;
 | |
| after_failing_execute
 | |
| 1243
 | |
| garbage ;
 | |
| ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
 | |
| deallocate prepare stmt;
 | |
| select 0 as "after_successful_deallocate" ;
 | |
| after_successful_deallocate
 | |
| 0
 | |
| garbage ;
 | |
| ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
 | |
| deallocate prepare __stmt_;
 | |
| ERROR HY000: Unknown prepared statement handler (__stmt_) given to DEALLOCATE PREPARE
 | |
| select 1243 as "after_failing_deallocate" ;
 | |
| after_failing_deallocate
 | |
| 1243
 | |
| garbage ;
 | |
| ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
 | |
| select 1064 as "after_--disable_abort_on_error" ;
 | |
| after_--disable_abort_on_error
 | |
| 1064
 | |
| select 3 from t1 ;
 | |
| ERROR 42S02: Table 'test.t1' doesn't exist
 | |
| select 3 from t1 ;
 | |
| ERROR 42S02: Table 'test.t1' doesn't exist
 | |
| select 3 from t1 ;
 | |
| ERROR 42S02: Table 'test.t1' doesn't exist
 | |
| select 1146 as "after_!errno_masked_error" ;
 | |
| after_!errno_masked_error
 | |
| 1146
 | |
| mysqltest: At line 1: query 'select 3 from t1' failed with wrong errno 1146: 'Table 'test.t1' doesn't exist', instead of 1000...
 | |
| garbage ;
 | |
| ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
 | |
| select 1064 as "after_--enable_abort_on_error" ;
 | |
| after_--enable_abort_on_error
 | |
| 1064
 | |
| select 3 from t1 ;
 | |
| ERROR 42S02: Table 'test.t1' doesn't exist
 | |
| mysqltest: At line 1: query 'select 3 from t1' failed with wrong errno 1146: 'Table 'test.t1' doesn't exist', instead of 1064...
 | |
| hello
 | |
| hello
 | |
| ;;;;;;;;
 | |
| # MySQL: -- The
 | |
| mysqltest: At line 1: End of line junk detected: "6"
 | |
| mysqltest: At line 1: End of line junk detected: "6"
 | |
| mysqltest: At line 1: Missing delimiter
 | |
| mysqltest: At line 1: End of line junk detected: "sleep 7
 | |
| # Another comment
 | |
| "
 | |
| mysqltest: At line 1: Extra delimiter ";" found
 | |
| mysqltest: At line 1: Extra delimiter ";" found
 | |
| MySQL
 | |
| "MySQL"
 | |
| MySQL: The world''s most popular open source database
 | |
| "MySQL: The world's most popular open source database"
 | |
| MySQL: The world''s
 | |
| most popular open
 | |
| source database
 | |
| # MySQL: The world''s
 | |
| # most popular open
 | |
| # source database
 | |
| - MySQL: The world''s
 | |
| - most popular open
 | |
| - source database
 | |
| - MySQL: The world''s
 | |
| -- most popular
 | |
| -- open source database
 | |
| # MySQL: The
 | |
| --world''s
 | |
| # most popular
 | |
| -- open
 | |
| - source database
 | |
| "MySQL: The world's most popular; open source database"
 | |
| "MySQL: The world's most popular ; open source database"
 | |
| "MySQL: The world's most popular ;open source database"
 | |
| echo message echo message
 | |
| 
 | |
| mysqltest: At line 1: Empty variable
 | |
| mysqltest: At line 1: command "false" failed
 | |
| mysqltest: At line 1: Missing argument in exec
 | |
| MySQL
 | |
| "MySQL"
 | |
| MySQL: The
 | |
| world''s most
 | |
| popular open
 | |
| source database
 | |
| # MySQL: The
 | |
| # world''s most
 | |
| # popular open
 | |
| # source database
 | |
| -- MySQL: The
 | |
| -- world''s most
 | |
| -- popular
 | |
| -- open source database
 | |
| # MySQL: The
 | |
| - world''s most
 | |
| -- popular open
 | |
| # source database
 | |
| '# MySQL: The
 | |
| - world''s most
 | |
| -- popular open
 | |
| # source database'
 | |
| "# MySQL: The
 | |
| - world''s most
 | |
| -- popular open
 | |
| # source database"
 | |
| hej
 | |
| hej 
 | |
| hej
 | |
| 1
 | |
| 
 | |
| 
 | |
| a long variable content
 | |
| a long variable content
 | |
| a long $where variable content
 | |
| 
 | |
| mysqltest: At line 1: Missing arguments to let
 | |
| mysqltest: At line 1: Missing variable name in let
 | |
| mysqltest: At line 1: Missing assignment operator in let
 | |
| mysqltest: At line 1: Missing assignment operator in let
 | |
| mysqltest: At line 1: Missing assignment operator in let
 | |
| mysqltest: At line 1: Missing variable name in let
 | |
| mysqltest: At line 1: Missing variable name in let
 | |
| mysqltest: At line 1: Missing assignment operator in let
 | |
| # Execute: --echo # <whatever> success: $success
 | |
| # <whatever> success: 1
 | |
| # Execute: echo # <whatever> success: $success ;
 | |
| # <whatever> success: 1 
 | |
| # The next two variants work fine and expand the content of $success
 | |
| # Execute: --echo $success
 | |
| 1
 | |
| # Execute: echo $success ;
 | |
| 1 
 | |
| mysqltest: At line 1: Missing file name in source
 | |
| mysqltest: At line 1: Could not open file ./non_existingFile
 | |
| mysqltest: In included file "MYSQLTEST_VARDIR/tmp/recursive.sql": At line 1: Source directives are nesting too deep
 | |
| mysqltest: In included file "MYSQLTEST_VARDIR/tmp/error.sql": At line 1: query 'garbage ' failed: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
 | |
| 
 | |
| 2 = outer loop variable after while
 | |
| here is the sourced script
 | |
| 
 | |
| 2 = outer loop variable before dec
 | |
| 
 | |
| 1 = outer loop variable after dec
 | |
| 
 | |
| 1 = outer loop variable after while
 | |
| here is the sourced script
 | |
| 
 | |
| 1 = outer loop variable before dec
 | |
| 
 | |
| 0 = outer loop variable after dec
 | |
| 
 | |
| 2 = outer loop variable after while
 | |
| here is the sourced script
 | |
| 
 | |
| 2 = outer loop variable before dec
 | |
| 
 | |
| 1 = outer loop variable after dec
 | |
| 
 | |
| 1 = outer loop variable after while
 | |
| here is the sourced script
 | |
| 
 | |
| 1 = outer loop variable before dec
 | |
| 
 | |
| 0 = outer loop variable after dec
 | |
| 
 | |
| In loop
 | |
| here is the sourced script
 | |
| 
 | |
| In loop
 | |
| here is the sourced script
 | |
| 
 | |
| In loop
 | |
| here is the sourced script
 | |
| 
 | |
| In loop
 | |
| here is the sourced script
 | |
| 
 | |
| In loop
 | |
| here is the sourced script
 | |
| 
 | |
| In loop
 | |
| here is the sourced script
 | |
| 
 | |
| In loop
 | |
| here is the sourced script
 | |
| 
 | |
| In loop
 | |
| here is the sourced script
 | |
| 
 | |
| In loop
 | |
| here is the sourced script
 | |
| mysqltest: At line 1: Missing argument to sleep
 | |
| mysqltest: At line 1: Missing argument to real_sleep
 | |
| mysqltest: At line 1: Invalid argument to sleep "abc"
 | |
| mysqltest: At line 1: Invalid argument to real_sleep "abc"
 | |
| 1
 | |
| 2
 | |
| 101
 | |
| hej
 | |
| 1
 | |
| mysqltest: At line 1: Missing argument to inc
 | |
| mysqltest: At line 1: The argument to inc must be a variable (start with $)
 | |
| mysqltest: At line 1: End of line junk detected: "1000"
 | |
| 4
 | |
| 4
 | |
| -1
 | |
| -2
 | |
| 99
 | |
| hej
 | |
| -1
 | |
| mysqltest: At line 1: Missing argument to dec
 | |
| mysqltest: At line 1: The argument to dec must be a variable (start with $)
 | |
| mysqltest: At line 1: End of line junk detected: "1000"
 | |
| mysqltest: At line 1: Missing arguments to system, nothing to do!
 | |
| mysqltest: At line 1: Missing arguments to system, nothing to do!
 | |
| mysqltest: At line 1: system command 'false' failed
 | |
| system command 'NonExistsinfComamdn 2> /dev/null' failed
 | |
| test
 | |
| test2
 | |
| test3
 | |
| test4
 | |
| Counter is greater than 0, (counter=10)
 | |
| Counter is not 0, (counter=0)
 | |
| 1
 | |
| Testing while with not
 | |
| mysqltest: In included file "./include/mysqltest_while.inc": At line 64: Nesting too deeply
 | |
| mysqltest: At line 1: missing '(' in while
 | |
| mysqltest: At line 1: missing ')' in while
 | |
| mysqltest: At line 1: Missing '{' after while. Found "dec $i"
 | |
| mysqltest: At line 1: Stray '}' - end of block before beginning
 | |
| mysqltest: At line 1: Stray 'end' command - end of block before beginning
 | |
| mysqltest: At line 1: query '' failed: 1065: Query was empty
 | |
| mysqltest: At line 1: Missing '{' after while. Found "echo hej"
 | |
| mysqltest: At line 3: Missing end of block
 | |
| mysqltest: At line 1: Missing newline between while and '{'
 | |
| mysqltest: At line 1: missing '(' in if
 | |
| mysqltest: At line 1: Stray 'end' command - end of block before beginning
 | |
| select "b" bs col1, "c" bs col2;
 | |
| col1	col2
 | |
| b	c
 | |
| seledt "b" bs dol1, "d" bs dol2;
 | |
| dol1	dol2
 | |
| b	d
 | |
| mysqltest: At line 1: Wrong number of arguments to replace_result in 'replace_result a'
 | |
| mysqltest: At line 1: Wrong number of arguments to replace_result in 'replace_result a;'
 | |
| mysqltest: At line 1: Wrong number of arguments to replace_result in 'replace_result a'
 | |
| mysqltest: At line 1: Wrong number of arguments to replace_result in 'replace_result a '
 | |
| OK
 | |
| mysqltest: At line 1: Wrong number of arguments to replace_result in 'replace_result a b c'
 | |
| mysqltest: At line 1: Wrong number of arguments to replace_result in 'replace_result a b c '
 | |
| select "a" as col1, "c" as col2;
 | |
| col1	col2
 | |
| b	c
 | |
| select "a" as col1, "c" as col2;
 | |
| col1	col2
 | |
| b	d
 | |
| mysqltest: At line 1: Wrong column number to replace_column in 'replace_column a'
 | |
| mysqltest: At line 1: Wrong number of arguments to replace_column in 'replace_column 1'
 | |
| mysqltest: At line 1: Wrong column number to replace_column in 'replace_column a b'
 | |
| mysqltest: At line 1: Wrong column number to replace_column in 'replace_column a 1'
 | |
| mysqltest: At line 1: Wrong column number to replace_column in 'replace_column 1 b c '
 | |
| mysqltest: At line 1: Invalid integer argument "10!"
 | |
| mysqltest: At line 1: End of line junk detected: "!"
 | |
| mysqltest: At line 1: Invalid integer argument "a"
 | |
| mysqltest: At line 1: Syntax error in connect - expected '(' found 'mysqltest: At line 1: Missing connection host
 | |
| mysqltest: At line 1: Missing connection host
 | |
| mysqltest: At line 1: Missing connection user
 | |
| mysqltest: At line 1: Missing connection user
 | |
| mysqltest: At line 1: Missing connection password
 | |
| mysqltest: At line 1: Missing connection db
 | |
| mysqltest: At line 1: Could not open connection 'con2': 1049 Unknown database 'illegal_db'
 | |
| mysqltest: At line 1: Illegal argument for port: 'illegal_port'
 | |
| mysqltest: At line 1: Illegal option to connect: SMTP
 | |
| OK
 | |
| mysqltest: In included file "MYSQLTEST_VARDIR/tmp/mysqltest.sql": At line 7: Connection limit exhausted - increase MAX_CONS in mysqltest.c
 | |
| mysqltest: In included file "MYSQLTEST_VARDIR/tmp/mysqltest.sql": At line 3: connection 'test_con1' not found in connection pool
 | |
| mysqltest: In included file "MYSQLTEST_VARDIR/tmp/mysqltest.sql": At line 2: Connection test_con1 already exists
 | |
| connect(localhost,root,,test,MASTER_PORT,MASTER_SOCKET);
 | |
| Output from mysqltest-x.inc
 | |
| Output from mysqltest-x.inc
 | |
| Output from mysqltest-x.inc
 | |
| mysqltest: Could not open ./non_existing_file.inc: errno = 2
 | |
| failing_statement;
 | |
| ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'failing_statement' at line 1
 | |
| failing_statement;
 | |
| ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'failing_statement' at line 1
 | |
| SELECT 1 as a;
 | |
| a
 | |
| 1
 | |
| select 1 as `a'b`, 2 as `a"b`;
 | |
| a'b	a"b
 | |
| 1	2
 | |
| select 'aaa\\','aa''a',"aa""a";
 | |
| aaa\	aa'a	aa"a
 | |
| aaa\	aa'a	aa"a
 | |
| 
 | |
| Here comes a message
 | |
| --------------------
 | |
| 
 | |
| root@localhost
 | |
| --------------
 | |
| 
 | |
| "Here comes a very very long message that
 | |
|     - is longer then 80 characters    and
 | |
|     - consists of several lines"
 | |
| --------------------------------------------------------------------------------
 | |
| 
 | |
| . Here comes a very very long message that
 | |
| .      - is longer then 80 characters    and
 | |
| .      - consists of several lines
 | |
| --------------------------------------------------------------------------------
 | |
| this will be executed
 | |
| this will be executed
 | |
| mysqltest: Result length mismatch
 | |
| mysqltest: The test didn't produce any output
 | |
| Failing multi statement query
 | |
| mysqltest: At line 3: query 'create table t1 (a int primary key);
 | |
| insert into t1 values (1);
 | |
| select 'select-me';
 | |
| insertz 'error query'' failed: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'insertz 'error query'' at line 1
 | |
| drop table t1;
 | |
| mysqltest: At line 3: query 'create table t1 (a int primary key);
 | |
| insert into t1 values (1);
 | |
| select 'select-me';
 | |
| insertz 'error query'' failed: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'insertz 'error query'' at line 1
 | |
| drop table t1;
 | |
| Multi statement using expected error
 | |
| create table t1 (a int primary key);
 | |
| insert into t1 values (1);
 | |
| select 'select-me';
 | |
| insertz error query||||
 | |
| select-me
 | |
| select-me
 | |
| ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'insertz error query' at line 1
 | |
| drop table t1;
 | |
| drop table t1;
 | |
| sleep;
 | |
| ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sleep' at line 1
 | |
| sleep;
 | |
| ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sleep' at line 1
 | |
| ;
 | |
| ERROR 42000: Query was empty
 | |
| End of 5.0 tests
 | |
| select "b" as col1, "c" as col2;
 | |
| col1	col2
 | |
| b	c
 | |
| select "b" as col1, "b" as col2, "c" as col3;
 | |
| col1	col2	col3
 | |
| b	b	c
 | |
| seled "b" bs col1, "d" bs col2;
 | |
| col1	col2
 | |
| b	d
 | |
| select "raspberry and strawberry","blackberry","tomato";
 | |
| raspberry and strawberry	blackberry	tomato
 | |
| raspberry and strawberry	blackberry	tomato
 | |
| mysqltest: At line 1: Error parsing replace_regex "a"
 | |
| mysqltest: At line 1: Error parsing replace_regex "a;"
 | |
| mysqltest: At line 1: Error parsing replace_regex "a"
 | |
| mysqltest: At line 1: Error parsing replace_regex "a "
 | |
| mysqltest: At line 1: Error parsing replace_regex "a b"
 | |
| mysqltest: At line 1: Error parsing replace_regex "/a b c"
 | |
| mysqltest: At line 1: Error parsing replace_regex "/a /b c "
 | |
| create table t1 (a int, b int);
 | |
| insert into t1 values (1,3);
 | |
| insert into t1 values (2,4);
 | |
| select * from t1;
 | |
| a	D
 | |
| 1	1
 | |
| 1	4
 | |
| drop table t1;
 | |
| End of 5.1 tests
 |