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 | 551e74c567f8c7aa17d85fb65fd2df0184914984 (patch) | |
tree | 9b88e93528c1fe1aaf2b548d2ac3e1df8eec1c5d /innobase | |
parent | 8a39147a6adf83a430d7d9bf951238519157603d (diff) | |
download | mariadb-git-551e74c567f8c7aa17d85fb65fd2df0184914984.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).
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 == '#' |