summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorevgen@moonbone.local <>2007-11-13 13:24:48 +0000
committerevgen@moonbone.local <>2007-11-13 13:24:48 +0000
commit4fa7ee92e6ed958d55b52abdd541842746b3a369 (patch)
treeee68ba15bd8652e76a5e7234e7ac6b1b360266f1 /tests
parent055e3e78ceec218bf9a72206afec5a50c8ce2d23 (diff)
downloadmariadb-git-4fa7ee92e6ed958d55b52abdd541842746b3a369.tar.gz
Bug#30081: "ON UPDATE CURRENT_TIMESTAMP" wasn't shown by the SHOW FIELDS
command and reported to a client. The fact that a timestamp field will be set to NO on UPDATE wasn't shown by the SHOW COMMAND and reported to a client through connectors. This led to problems in the ODBC connector and might lead to a user confusion. A new filed flag called ON_UPDATE_NOW_FLAG is added. Constructors of the Field_timestamp set it when a field should be set to NOW on UPDATE. The get_schema_column_record function now reports whether a timestamp field will be set to NOW on UPDATE.
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index d3ba0660198..bce9bf3feff 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -7787,7 +7787,7 @@ static void test_explain_bug()
verify_prepare_field(result, 5, "Extra", "EXTRA",
mysql_get_server_version(mysql) <= 50000 ?
MYSQL_TYPE_STRING : MYSQL_TYPE_VAR_STRING,
- 0, 0, "", 20, 0);
+ 0, 0, "", 27, 0);
mysql_free_result(result);
mysql_stmt_close(stmt);