You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
load data infile '../../std_data/rpl_loaddata2.dat' into table t2 fields terminated by ',' optionally enclosed by '%' escaped by '@' lines terminated by '\n##\n' starting by '>' ignore 1 lines;
43
+
eval $lower_stmt_head infile '../../std_data/rpl_loaddata2.dat' into table t2 fields terminated by ',' optionally enclosed by '%' escaped by '@' lines terminated by '\n##\n' starting by '>' ignore 1 lines;
32
44
33
45
create table t3 (day date,id int(9),category enum('a','b','c'),name varchar(60));
34
46
insert into t3 select * from t2;
@@ -56,7 +68,7 @@ sync_with_master;
56
68
insert into t1 values(1,10);
57
69
58
70
connection master;
59
-
load data infile '../../std_data/rpl_loaddata.dat' into table t1;
71
+
eval $lower_stmt_head infile '../../std_data/rpl_loaddata.dat' into table t1;
60
72
61
73
save_master_pos;
62
74
connection slave;
@@ -70,17 +82,19 @@ connection slave;
70
82
set global sql_slave_skip_counter=1;
71
83
start slave;
72
84
sync_with_master;
73
-
--replace_result $MASTER_MYPORT MASTER_PORT
74
-
--replace_column 1 # 8 # 9 # 16 # 23 # 33 #
75
-
--query_vertical show slave status;
85
+
let $last_error= query_get_value(SHOW SLAVE STATUS, Last_SQL_Errno, 1);
86
+
echo Last_SQL_Errno=$last_error;
87
+
let $last_error= query_get_value(SHOW SLAVE STATUS, Last_SQL_Error, 1);
88
+
echo Last_SQL_Error;
89
+
echo $last_error;
76
90
77
91
# Trigger error again to test CHANGE MASTER
78
92
79
93
connection master;
80
94
set sql_log_bin=0;
81
95
delete from t1;
82
96
set sql_log_bin=1;
83
-
load data infile '../../std_data/rpl_loaddata.dat' into table t1;
97
+
eval $lower_stmt_head infile '../../std_data/rpl_loaddata.dat' into table t1;
84
98
save_master_pos;
85
99
connection slave;
86
100
# The SQL slave thread should be stopped now.
@@ -92,9 +106,11 @@ connection slave;
92
106
stop slave;
93
107
change master to master_user='test';
94
108
change master to master_user='root';
95
-
--replace_result $MASTER_MYPORT MASTER_PORT
96
-
--replace_column 1 # 8 # 9 # 16 # 23 # 33 #
97
-
--query_vertical show slave status;
109
+
let $last_error= query_get_value(SHOW SLAVE STATUS, Last_SQL_Errno, 1);
110
+
echo Last_SQL_Errno=$last_error;
111
+
let $last_error= query_get_value(SHOW SLAVE STATUS, Last_SQL_Error, 1);
112
+
echo Last_SQL_Error;
113
+
echo $last_error;
98
114
99
115
# Trigger error again to test RESET SLAVE
100
116
@@ -105,7 +121,7 @@ connection master;
105
121
set sql_log_bin=0;
106
122
delete from t1;
107
123
set sql_log_bin=1;
108
-
load data infile '../../std_data/rpl_loaddata.dat' into table t1;
124
+
eval $lower_stmt_head infile '../../std_data/rpl_loaddata.dat' into table t1;
109
125
save_master_pos;
110
126
connection slave;
111
127
# The SQL slave thread should be stopped now.
@@ -114,9 +130,11 @@ connection slave;
114
130
# RESET SLAVE and see if error is cleared in SHOW SLAVE STATUS.
115
131
stop slave;
116
132
reset slave;
117
-
--replace_result $MASTER_MYPORT MASTER_PORT
118
-
--replace_column 1 # 8 # 9 # 16 # 23 # 33 #
119
-
--query_vertical show slave status;
133
+
let $last_error= query_get_value(SHOW SLAVE STATUS, Last_SQL_Errno, 1);
134
+
echo Last_SQL_Errno=$last_error;
135
+
let $last_error= query_get_value(SHOW SLAVE STATUS, Last_SQL_Error, 1);
136
+
echo Last_SQL_Error;
137
+
echo $last_error;
120
138
121
139
# Finally, see if logging is done ok on master for a failing LOAD DATA INFILE
Copy file name to clipboardExpand all lines: mysql-test/r/fulltext.result
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -560,6 +560,20 @@ MATCH (col) AGAINST('findme')
560
560
DEALLOCATE PREPARE s;
561
561
DROP TABLE t1;
562
562
#
563
+
# Bug #49250 : spatial btree index corruption and crash
564
+
# Part two : fulltext syntax check
565
+
#
566
+
CREATE TABLE t1(col1 TEXT,
567
+
FULLTEXT INDEX USING BTREE (col1));
568
+
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 'USING BTREE (col1))' at line 2
569
+
CREATE TABLE t2(col1 TEXT);
570
+
CREATE FULLTEXT INDEX USING BTREE ON t2(col);
571
+
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 'USING BTREE ON t2(col)' at line 1
572
+
ALTER TABLE t2 ADD FULLTEXT INDEX USING BTREE (col1);
573
+
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 'USING BTREE (col1)' at line 1
574
+
DROP TABLE t2;
575
+
End of 5.0 tests
576
+
#
563
577
# Bug #47930: MATCH IN BOOLEAN MODE returns too many results
Copy file name to clipboardExpand all lines: mysql-test/r/gis.result
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -984,6 +984,19 @@ GEOMFROMTEXT(
984
984
SELECT 1 FROM t1 WHERE a <> (SELECT GEOMETRYCOLLECTIONFROMWKB(b) FROM t1);
985
985
1
986
986
DROP TABLE t1;
987
+
#
988
+
# Bug #49250 : spatial btree index corruption and crash
989
+
# Part one : spatial syntax check
990
+
#
991
+
CREATE TABLE t1(col1 MULTIPOLYGON NOT NULL,
992
+
SPATIAL INDEX USING BTREE (col1));
993
+
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 'USING BTREE (col1))' at line 2
994
+
CREATE TABLE t2(col1 MULTIPOLYGON NOT NULL);
995
+
CREATE SPATIAL INDEX USING BTREE ON t2(col);
996
+
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 'USING BTREE ON t2(col)' at line 1
997
+
ALTER TABLE t2 ADD SPATIAL INDEX USING BTREE (col1);
998
+
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 'USING BTREE (col1)' at line 1
0 commit comments