diff options
author | rburnett@production.mysql.com <> | 2006-08-14 20:48:37 +0200 |
---|---|---|
committer | rburnett@production.mysql.com <> | 2006-08-14 20:48:37 +0200 |
commit | 0199dda5a6c0433fadbf99d8695d4925513a5fe5 (patch) | |
tree | 0375e611e60bec1f7a3bbd3fc8c344882a7b24ff /tests | |
parent | 4bb77154826f9c628354ce27fad4b6e27231b69c (diff) | |
download | mariadb-git-0199dda5a6c0433fadbf99d8695d4925513a5fe5.tar.gz |
My previous change of replacing the call to sprintf with some memcpy type routines was not correct. This patch reverts that.
mysql_client_test.c:
reverting my previous change
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_test.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c index a1208521e8d..8a8aae01dab 100644 --- a/tests/mysql_client_test.c +++ b/tests/mysql_client_test.c @@ -12907,9 +12907,8 @@ static void test_bug8378() /* No escaping should have actually happened. */ DIE_UNLESS(memcmp(out, TEST_BUG8378_OUT, len) == 0); - strcpy(buf, "SELECT '"); - memcpy(buf+8, out, len); - buf[8+len] = '\''; + sprintf(buf, "SELECT '%s'", out); + rc=mysql_real_query(mysql, buf, strlen(buf)); myquery(rc); |