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
The segfault in wsrep_check_sequence is due to a
null pointer deference on:
db_type= thd->lex->create_info.db_type->db_type;
Where create_info.db_type is null. This occured under
a used_engine==true condition which is set in the calling
function based on create_info.used_fields==HA_CREATE_USED_ENGINE.
However the create_info.used_fields was a left over
from the parsing of the previous failed CREATE TABLE where
because of its failure, db_type wasn't populated.
This is corrected by cleaning the create_info when we start
to parse ALTER SEQUENCE statements.
Other paths to wsrep_check_sequence is via CREATE SEQUENCE
and CREATE TABLE LIKE which both initialize the create_info
correctly.
Copy file name to clipboardExpand all lines: mysql-test/suite/galera/r/galera_sequences.result
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -314,3 +314,14 @@ NEXTVAL(t)
314
314
connection node_1;
315
315
DROP TABLE t1;
316
316
DROP SEQUENCE t;
317
+
318
+
MDEV-33245 SIGSEGV in wsrep_check_sequence | Sql_cmd_alter_sequence::execute
319
+
320
+
CREATE TABLE t (a INT) ENGINE=InnoDB;
321
+
INSERT INTO t VALUES (0);
322
+
CREATE TABLE t1 (c VARCHAR) ENGINE=InnoDB;
323
+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') ENGINE=InnoDB' at line 1
324
+
ALTER SEQUENCE IF EXISTS t MINVALUE=1;
325
+
ERROR 42000: This version of MariaDB doesn't yet support 'CACHE without INCREMENT BY 0 in Galera cluster'
0 commit comments