Commit a7ad88a4 authored by unknown's avatar unknown

Fix the test case for bug#4231 (which before was passing just by occasion)

parent 150d987d
...@@ -10122,9 +10122,9 @@ static void test_bug4231() ...@@ -10122,9 +10122,9 @@ static void test_bug4231()
bzero(bind, sizeof(bind)); bzero(bind, sizeof(bind));
bzero(tm, sizeof(tm)); bzero(tm, sizeof(tm));
bind[0].buffer_type= MYSQL_TYPE_TIME; bind[0].buffer_type= MYSQL_TYPE_DATE;
bind[0].buffer= &tm[0]; bind[0].buffer= &tm[0];
bind[1].buffer_type= MYSQL_TYPE_TIME; bind[1].buffer_type= MYSQL_TYPE_DATE;
bind[1].buffer= &tm[1]; bind[1].buffer= &tm[1];
mysql_stmt_bind_param(stmt, bind); mysql_stmt_bind_param(stmt, bind);
...@@ -10152,7 +10152,7 @@ static void test_bug4231() ...@@ -10152,7 +10152,7 @@ static void test_bug4231()
/* Set one of the dates to zero */ /* Set one of the dates to zero */
tm[0].year= tm[0].month= tm[0].day= 0; tm[0].year= tm[0].month= tm[0].day= 0;
tm[1]= tm[1]; tm[1]= tm[0];
mysql_stmt_execute(stmt); mysql_stmt_execute(stmt);
rc= mysql_stmt_fetch(stmt); rc= mysql_stmt_fetch(stmt);
DBUG_ASSERT(rc == 0); DBUG_ASSERT(rc == 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment