diff options
author | Jan Lindström <jan.lindstrom@mariadb.com> | 2016-04-07 10:47:46 +0300 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2016-04-23 13:05:15 +0300 |
commit | 19e3597e0c718a4cfdfe8789c7b4b11a4e0ba0c6 (patch) | |
tree | ebd56557b6ff1d6a0731fab4e0c9a64a07621324 /sql/sql_parse.h | |
parent | 0ea4c73dae689fb80e2c1c1cc347a917534edfae (diff) | |
download | mariadb-git-19e3597e0c718a4cfdfe8789c7b4b11a4e0ba0c6.tar.gz |
MDEV-9142 :Adding Constraint with no database reference
results in ERROR 1046 (3D000) at line 13: No database selected.
Use database from create table to foreign key database if
nothing else is given.
Diffstat (limited to 'sql/sql_parse.h')
-rw-r--r-- | sql/sql_parse.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_parse.h b/sql/sql_parse.h index 60d5925c573..4c3070d197d 100644 --- a/sql/sql_parse.h +++ b/sql/sql_parse.h @@ -47,7 +47,8 @@ bool create_table_precheck(THD *thd, TABLE_LIST *tables, TABLE_LIST *create_table); bool check_fk_parent_table_access(THD *thd, HA_CREATE_INFO *create_info, - Alter_info *alter_info); + Alter_info *alter_info, + const char* create_db); bool parse_sql(THD *thd, Parser_state *parser_state, |