summaryrefslogtreecommitdiff
path: root/mysql-test/t/type_timestamp.test
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2005-01-12 03:38:53 +0200
committerunknown <monty@mysql.com>2005-01-12 03:38:53 +0200
commit24a0275722914643a1a6498310bc5a04cea44a3b (patch)
tree6a8b1b01636a63430471b9c070075ba6ecaf9379 /mysql-test/t/type_timestamp.test
parent0b7895b9b14981926c34fbd833aed0d9235da68a (diff)
downloadmariadb-git-24a0275722914643a1a6498310bc5a04cea44a3b.tar.gz
Fixed memory reference errors found by valgrind
sql/ha_federated.cc: Change mode to -rw-rw-r-- myisam/mi_create.c: Ensure that all referenced memory is reset mysql-test/r/type_timestamp.result: More tests mysql-test/t/func_compress.test: Added comment mysql-test/t/type_timestamp.test: More tests sql/field.h: Count number of varchars in table sql/item_cmpfunc.cc: Safety fix (to avoid warning from valgrind) sql/opt_range.cc: Simple optimzation sql/sql_acl.cc: Safety fix (to avoid warning from valgrind) sql/sql_parse.cc: Safety fix for prepared statements sql/sql_show.cc: Move variable declarations first in function Remove hidden variable (it) Remove accessing freed memory (table_list->table_name) sql/sql_update.cc: Compare records with varchars correctly sql/table.cc: Safety fix when running with purify/valgrind Fix wrong memory reference in case of errors sql/table.h: Added counting of varchar fields strings/ctype-mb.c: Fill max_str properly
Diffstat (limited to 'mysql-test/t/type_timestamp.test')
-rw-r--r--mysql-test/t/type_timestamp.test2
1 files changed, 2 insertions, 0 deletions
diff --git a/mysql-test/t/type_timestamp.test b/mysql-test/t/type_timestamp.test
index a8a0cf8703c..0a92afeb57d 100644
--- a/mysql-test/t/type_timestamp.test
+++ b/mysql-test/t/type_timestamp.test
@@ -29,6 +29,8 @@ INSERT INTO t1 VALUES ("my value", "myKey","1999-04-02 00:00:00");
SELECT stamp FROM t1 WHERE id="myKey";
UPDATE t1 SET value="my value" WHERE id="myKey";
SELECT stamp FROM t1 WHERE id="myKey";
+UPDATE t1 SET id="myKey" WHERE value="my value";
+SELECT stamp FROM t1 WHERE id="myKey";
drop table t1;
create table t1 (a timestamp);