summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStaale Smedseng <staale.smedseng@sun.com>2009-07-01 14:32:04 +0200
committerStaale Smedseng <staale.smedseng@sun.com>2009-07-01 14:32:04 +0200
commit3c052dd097b18939443e44f5ad63969cbc8ccc5d (patch)
tree319d5fc121e179baca81b80dbe56003b14ae5fc6
parent95e2fd14726073fcc96cee66e440bff8fefe6181 (diff)
parent3cd431d553d722ec56db2635d88b8bb17087952a (diff)
downloadmariadb-git-3c052dd097b18939443e44f5ad63969cbc8ccc5d.tar.gz
Merge from 5.0
-rw-r--r--sql/sql_parse.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index c593f563052..542ce992537 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -1350,7 +1350,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
if (check_access(thd, CREATE_ACL, db.str , 0, 1, 0,
is_schema_db(db.str)))
break;
- general_log_print(thd, command, packet);
+ general_log_print(thd, command, "%.*s", db.length, db.str);
bzero(&create_info, sizeof(create_info));
mysql_create_db(thd, (lower_case_table_names == 2 ? alias.str : db.str),
&create_info, 0);
@@ -1375,7 +1375,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
ER(ER_LOCK_OR_ACTIVE_TRANSACTION), MYF(0));
break;
}
- general_log_write(thd, command, db.str, db.length);
+ general_log_write(thd, command, "%.*s", db.length, db.str);
mysql_rm_db(thd, db.str, 0, 0);
break;
}