summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorunknown <evgen@sunlight.local>2007-04-28 00:04:50 +0400
committerunknown <evgen@sunlight.local>2007-04-28 00:04:50 +0400
commit51d19e32429255e95d6800fef904abfa1e5fc173 (patch)
treef402ee6944894d6eb86a4cea8d8fa9f17ace0708 /tests
parent17fbe3b209ef752f9338c94a204d144bafcc7e38 (diff)
downloadmariadb-git-51d19e32429255e95d6800fef904abfa1e5fc173.tar.gz
Additional fix for the bug#27590.
tests/mysql_client_test.c: Fixed failing build on the windows platform. mysql-test/r/ps_7ndb.result: The result of the adjusted test case after fix for bug#27590. mysql-test/r/ps_6bdb.result: The result of the adjusted test case after fix for bug#27590. sql/item_cmpfunc.cc: A warning is fixed.
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index dffd7517e78..3f0c24aa28a 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -8785,7 +8785,9 @@ static void test_ts()
int rc, field_count;
char name;
char query[MAX_TEST_QUERY_LENGTH];
-
+ const char *queries [3]= {"SELECT a, b, c FROM test_ts WHERE %c=?",
+ "SELECT a, b, c FROM test_ts WHERE %c=?",
+ "SELECT a, b, c FROM test_ts WHERE %c=CAST(? AS DATE)"};
myheader("test_ts");
rc= mysql_query(mysql, "DROP TABLE IF EXISTS test_ts");
@@ -8852,9 +8854,7 @@ static void test_ts()
mysql_free_result(prep_res);
mysql_stmt_close(stmt);
- char queries [3][60]= {"SELECT a, b, c FROM test_ts WHERE %c=?",
- "SELECT a, b, c FROM test_ts WHERE %c=?",
- "SELECT a, b, c FROM test_ts WHERE %c=CAST(? AS DATE)"};
+
for (name= 'a'; field_count--; name++)
{
int row_count= 0;