summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorkonstantin@mysql.com <>2004-09-15 02:43:17 +0400
committerkonstantin@mysql.com <>2004-09-15 02:43:17 +0400
commit10aedc87d89160c3bc1b45adc78d4611523628cd (patch)
tree12f0cc63602c647f111f3b7889b262fdfa9915d6 /tests
parentda7dbde8f42b39b0180243636b65bea19c128d4f (diff)
downloadmariadb-git-10aedc87d89160c3bc1b45adc78d4611523628cd.tar.gz
Fix the test case for bug#4231 (which before was passing just by occasion)
Diffstat (limited to 'tests')
-rw-r--r--tests/client_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/client_test.c b/tests/client_test.c
index 1cc0bd9f0ba..0a4d635984d 100644
--- a/tests/client_test.c
+++ b/tests/client_test.c
@@ -10122,9 +10122,9 @@ static void test_bug4231()
bzero(bind, sizeof(bind));
bzero(tm, sizeof(tm));
- bind[0].buffer_type= MYSQL_TYPE_TIME;
+ bind[0].buffer_type= MYSQL_TYPE_DATE;
bind[0].buffer= &tm[0];
- bind[1].buffer_type= MYSQL_TYPE_TIME;
+ bind[1].buffer_type= MYSQL_TYPE_DATE;
bind[1].buffer= &tm[1];
mysql_stmt_bind_param(stmt, bind);
@@ -10152,7 +10152,7 @@ static void test_bug4231()
/* Set one of the dates to zero */
tm[0].year= tm[0].month= tm[0].day= 0;
- tm[1]= tm[1];
+ tm[1]= tm[0];
mysql_stmt_execute(stmt);
rc= mysql_stmt_fetch(stmt);
DBUG_ASSERT(rc == 0);