summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorkonstantin@mysql.com <>2004-08-05 02:43:18 -0700
committerkonstantin@mysql.com <>2004-08-05 02:43:18 -0700
commitf8c0850521709173112cb2be1e9668d32e0d9b55 (patch)
tree666bf5af148352d23d4f336e61970b9b9c5b3461 /tests
parent7c6a4ce7bc7eb9e9b57bcd1907f3403dfa68966d (diff)
downloadmariadb-git-f8c0850521709173112cb2be1e9668d32e0d9b55.tar.gz
Cleanup in libmysql.
Diffstat (limited to 'tests')
-rw-r--r--tests/client_test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/client_test.c b/tests/client_test.c
index 3652c0f7c8e..de77d4517dd 100644
--- a/tests/client_test.c
+++ b/tests/client_test.c
@@ -9862,11 +9862,17 @@ static void test_bug4026()
time_in.minute= 59;
time_in.second= 59;
time_in.second_part= 123456;
+ /*
+ This is not necessary, just to make assert below work: this field
+ is filled in when time is received from server
+ */
+ time_in.time_type= MYSQL_TIMESTAMP_TIME;
datetime_in= time_in;
datetime_in.year= 2003;
datetime_in.month= 12;
datetime_in.day= 31;
+ datetime_in.time_type= MYSQL_TIMESTAMP_DATETIME;
mysql_stmt_bind_param(stmt, bind);