diff options
author | Staale Smedseng <staale.smedseng@sun.com> | 2009-07-01 14:32:04 +0200 |
---|---|---|
committer | Staale Smedseng <staale.smedseng@sun.com> | 2009-07-01 14:32:04 +0200 |
commit | 3c052dd097b18939443e44f5ad63969cbc8ccc5d (patch) | |
tree | 319d5fc121e179baca81b80dbe56003b14ae5fc6 /sql/sql_parse.cc | |
parent | 95e2fd14726073fcc96cee66e440bff8fefe6181 (diff) | |
parent | 3cd431d553d722ec56db2635d88b8bb17087952a (diff) | |
download | mariadb-git-3c052dd097b18939443e44f5ad63969cbc8ccc5d.tar.gz |
Merge from 5.0
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 4 |
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; } |