mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
c3c2279cbd
Also make InnoDB thinks that /*/ only starts a comment. (Bug #53644). struct trx_struct: Add mysql_query_len. ha_innodb.cc: Use trx_query_string() instead of trx_query() and initialize trx->mysql_query_len. INNOBASE_COPY_STMT(thd, trx): New macro, to initialize trx->mysql_query_str and trx->mysql_query_len. dict_strip_comments(): Add and observe the parameter sql_length. Treat /*/ as the start of a comment. dict_create_foreign_constraints(), row_table_add_foreign_constraints(): Add the parameter sql_length.
10 lines
592 B
Text
10 lines
592 B
Text
CREATE TABLE bug48024(a int PRIMARY KEY,b int NOT NULL,KEY(b)) ENGINE=InnoDB;
|
|
CREATE TABLE bug48024_b(b int PRIMARY KEY) ENGINE=InnoDB;
|
|
ALTER TABLE bug48024 /*/ADD CONSTRAINT FOREIGN KEY(c) REFERENCES(a),/*/
|
|
ADD CONSTRAINT FOREIGN KEY(b) REFERENCES bug48024_b(b);
|
|
DROP TABLE bug48024,bug48024_b;
|
|
CREATE TABLE bug48024(a int PRIMARY KEY,b int NOT NULL,KEY(b)) ENGINE=InnoDB;
|
|
CREATE TABLE bug48024_b(b int PRIMARY KEY) ENGINE=InnoDB;
|
|
ALTER TABLE bug48024 /*/ADD CONSTRAINT FOREIGN KEY(c) REFERENCES(a),/*/
|
|
ADD CONSTRAINT FOREIGN KEY(b) REFERENCES bug48024_b(b)|
|
|
DROP TABLE bug48024,bug48024_b;
|