mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
do not ignore --allow-keywords if SHOW CREATE TABLE is used
This commit is contained in:
@ -568,7 +568,7 @@ static uint getTableStructure(char *table, char* db)
|
|||||||
if (verbose)
|
if (verbose)
|
||||||
fprintf(stderr, "-- Retrieving table structure for table %s...\n", table);
|
fprintf(stderr, "-- Retrieving table structure for table %s...\n", table);
|
||||||
|
|
||||||
sprintf(insert_pat,"SET OPTION SQL_QUOTE_SHOW_CREATE=%d", opt_quoted);
|
sprintf(insert_pat,"SET OPTION SQL_QUOTE_SHOW_CREATE=%d", (opt_quoted || opt_keywords));
|
||||||
table_name=quote_name(table,table_buff);
|
table_name=quote_name(table,table_buff);
|
||||||
if (!mysql_query(sock,insert_pat))
|
if (!mysql_query(sock,insert_pat))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user