10
select 1 /*!32301 +1 */;
11
select 1 /*!52301 +1 */;
13
# Note that the following returns 4 while it should return 2
14
# This is because the mysqld server doesn't parse -- comments
17
select 1 # The rest of the row will be ignored
19
/* line with only comment */;
24
# Bug#25411 (trigger code truncated)
27
--error ER_PARSE_ERROR
30
--error ER_PARSE_ERROR
35
select 1 + /*!00000 2 */ + 3 /*!99999 noise*/ + 4;
38
# Bug#28779 (mysql_query() allows execution of statements with unbalanced
43
drop table if exists table_28779;
46
create table table_28779 (a int);
49
prepare bar from "DELETE FROM table_28779 WHERE a = 7 OR 1=1/*' AND b = 'bar';";
52
prepare bar from "DELETE FROM table_28779 WHERE a = 7 OR 1=1/*' AND b = 'bar';*";
55
prepare bar from "DELETE FROM table_28779 WHERE a = 7 OR 1=1/*! AND 2=2;";
58
prepare bar from "DELETE FROM table_28779 WHERE a = 7 OR 1=1/*! AND 2=2;*";
61
prepare bar from "DELETE FROM table_28779 WHERE a = 7 OR 1=1/*!98765' AND b = 'bar';";
64
prepare bar from "DELETE FROM table_28779 WHERE a = 7 OR 1=1/*!98765' AND b = 'bar';*";
66
drop table table_28779;