summaryrefslogtreecommitdiff
path: root/sql/sql_show.cc
diff options
context:
space:
mode:
authorVenkatesh Duggirala <venkatesh.duggirala@oracle.com>2015-03-13 13:13:48 +0530
committerVenkatesh Duggirala <venkatesh.duggirala@oracle.com>2015-03-13 13:13:48 +0530
commit59142d9a279339f766a23e35a0f7b183406e43c0 (patch)
tree19b4c90c794aa2899363f09f89d4a70c8255fd83 /sql/sql_show.cc
parent151b8ec4d11abbb3bf1fb55e10df3e3e7449fe1c (diff)
downloadmariadb-git-59142d9a279339f766a23e35a0f7b183406e43c0.tar.gz
Bug #20439913 CREATE TABLE DB.TABLE LIKE TMPTABLE IS
BINLOGGED INCORRECTLY - BREAKS A SLAVE Submitted a incomplete patch with my previous push, re submitting the extra changes the required to make the patch complete.
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r--sql/sql_show.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index ccbf1f41126..24e7d92d1ad 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -1,4 +1,4 @@
-/* Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
+/* Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -1139,6 +1139,11 @@ static bool get_field_default_value(THD *thd, Field *timestamp_field,
to tailor the format of the statement. Can be
NULL, in which case only SQL_MODE is considered
when building the statement.
+ show_database If true, then print the database before the table
+ name. The database name is only printed in the event
+ that it is different from the current database.
+ If false, then do not print the database before
+ the table name.
NOTE
Currently always return 0, but might return error code in the