summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorunknown <evgen@moonbone.local>2007-08-15 18:21:58 +0400
committerunknown <evgen@moonbone.local>2007-08-15 18:21:58 +0400
commitde02dc9e8a57fc92f69f9ed2c05815356648eed7 (patch)
treed249233df18974fd12cb077fc6660ff4fb316847 /tests
parenta6f059798ad73213cd4006c71b8a54990a005f9b (diff)
downloadmariadb-git-de02dc9e8a57fc92f69f9ed2c05815356648eed7.tar.gz
mysql_client_test.c:
Post fix for the bug#29948. tests/mysql_client_test.c: Post fix for the bug#29948.
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index dd6b0b5585f..c335b0128f7 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -15746,7 +15746,7 @@ static void test_bug29948()
char kill_buf[20];
const char *query;
int buf;
- unsigned long length;
+ unsigned long length, cursor_type;
dbc = mysql_init(NULL);
DIE_UNLESS(dbc);
@@ -15779,8 +15779,8 @@ static void test_bug29948()
stmt= mysql_stmt_init(dbc);
check_stmt(stmt);
- buf= CURSOR_TYPE_READ_ONLY;
- res= mysql_stmt_attr_set(stmt, STMT_ATTR_CURSOR_TYPE, (void *)&buf);
+ cursor_type= CURSOR_TYPE_READ_ONLY;
+ res= mysql_stmt_attr_set(stmt, STMT_ATTR_CURSOR_TYPE, (void *)&cursor_type);
myquery(res);
query= "SELECT * from t1 where a=?";