Red Hat Bugzilla – Bug 177849
Backup doesn't work
Last modified: 2007-11-30 17:11:20 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.8) Gecko/20051228 Fedora/1.5-3.fc4.remi Firefox/1.5
Description of problem:
When running a backup an error occurs :
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. launch mysql-adminstritor
2. create a Bakcup Project
3. Start Backup
Actual Results: Error : "Error running backup. Cannot set ANSI quotes"
Expected Results: Success : "Backup written to file '/home/xxx'."
I'm using mysql-administrator 1.1.5 for some time (building my own RPM) and I found a problem in the source : the use of gsprintf with the same input and output buffer.
For exemple : g_sprintf(sql_mode_cmd, "%sANSI_QUOTES", sql_mode_cmd).
A solution is to use a simple strcat.
Created attachment 123218 [details]
Patch to use strcat instead of gsprintf in backup module.
This patch solve the bug for me.
Version 1.1.6 is out.
myx_backup.c is the same as in version 1.1.5, so the patch is still needed.
updated to 1.1.6 and applied your patch. thanks.
sorry for the noise reassigning all mysql-administrator bugs to