summaryrefslogtreecommitdiff
path: root/client/mysqldump.c
diff options
context:
space:
mode:
authorunknown <stewart@willster.(none)>2006-10-20 22:47:28 +1000
committerunknown <stewart@willster.(none)>2006-10-20 22:47:28 +1000
commit7c0b76a8031dbc5126a0ee542daec0b919533d5d (patch)
treeadebb4f921becbbf541077dcdfa4c10145f22384 /client/mysqldump.c
parent5fd7e5e32cc0878f131856ea9e59594293db07d9 (diff)
downloadmariadb-git-7c0b76a8031dbc5126a0ee542daec0b919533d5d.tar.gz
BUG#20839 Illegal error code: 155 returned downgrading from 5.1.12-> 5.1.11
post-review fixups - magnus suggested creating dynstr_trunc instead of doing it manually. client/mysqldump.c: use dynstr_trunc instead of manually fiddling with the string include/my_sys.h: add dynstr_trunc mysys/string.c: add dynstr_trunc
Diffstat (limited to 'client/mysqldump.c')
-rw-r--r--client/mysqldump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/mysqldump.c b/client/mysqldump.c
index 660de5d72ef..37c6d7bbfd5 100644
--- a/client/mysqldump.c
+++ b/client/mysqldump.c
@@ -2783,7 +2783,7 @@ static int dump_tablespaces_for_tables(char *db, char **table_names, int tables)
dynstr_append(&where, name_buff);
dynstr_append(&where, "',");
}
- where.str[--where.length]= '\0';
+ dynstr_trunc(&where, 1);
dynstr_append(&where,"))");
DBUG_PRINT("info",("Dump TS for Tables where: %s",where));
@@ -2813,7 +2813,7 @@ static int dump_tablespaces_for_databases(char** databases)
dynstr_append(&where, db_name_buff);
dynstr_append(&where, "',");
}
- where.str[--where.length]='\0';
+ dynstr_trunc(&where, 1);
dynstr_append(&where,"))");
DBUG_PRINT("info",("Dump TS for DBs where: %s",where));