diff options
author | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2009-05-19 11:32:21 +0500 |
---|---|---|
committer | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2009-05-19 11:32:21 +0500 |
commit | 0a892c46e0f53cb1404bea696da6adecb95d39cb (patch) | |
tree | 9b88e93528c1fe1aaf2b548d2ac3e1df8eec1c5d /innobase | |
parent | a7294532b2f45342075d2a1bdac6cb8720a90ea3 (diff) | |
download | mariadb-git-0a892c46e0f53cb1404bea696da6adecb95d39cb.tar.gz |
Bug#39793 Foreign keys not constructed when column has a '#' in a comment or default value
Internal InnoDN FK parser does not recognize '\'' as quotation symbol.
Suggested fix is to add '\'' symbol check for quotation condition
(dict_strip_comments() function).
innobase/dict/dict0dict.c:
Internal InnoDN FK parser does not recognize '\'' as quotation symbol.
Suggested fix is to add '\'' symbol check for quotation condition
(dict_strip_comments() function).
mysql-test/r/innodb_mysql.result:
test result
mysql-test/t/innodb_mysql.test:
test case
Diffstat (limited to 'innobase')
-rw-r--r-- | innobase/dict/dict0dict.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/innobase/dict/dict0dict.c b/innobase/dict/dict0dict.c index b0d95597153..c1ca6f369c3 100644 --- a/innobase/dict/dict0dict.c +++ b/innobase/dict/dict0dict.c @@ -2829,7 +2829,7 @@ scan_more: } else if (quote) { /* Within quotes: do not look for starting quotes or comments. */ - } else if (*sptr == '"' || *sptr == '`') { + } else if (*sptr == '"' || *sptr == '`' || *sptr == '\'') { /* Starting quote: remember the quote character. */ quote = *sptr; } else if (*sptr == '#' |