diff options
author | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2009-04-23 12:47:54 +0500 |
---|---|---|
committer | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2009-04-23 12:47:54 +0500 |
commit | 9bd3ef2ebb58549f7d96dd42bbc0bbebd26ed967 (patch) | |
tree | c69662c774992bf1aa27ab5eb472b056994f97f7 /mysql-test/r/func_encrypt.result | |
parent | 5f9e40a5f8a469d87fb41002c18f3a41e9c4d6b3 (diff) | |
download | mariadb-git-9bd3ef2ebb58549f7d96dd42bbc0bbebd26ed967.tar.gz |
Bug#44365 valgrind warnings with encrypt() function
replaced String->c_ptr() with String->c_ptr_safe()
mysql-test/r/func_encrypt.result:
test result
mysql-test/t/func_encrypt.test:
test case
sql/item_strfunc.cc:
replaced String->c_ptr() with String->c_ptr_safe()
Diffstat (limited to 'mysql-test/r/func_encrypt.result')
-rw-r--r-- | mysql-test/r/func_encrypt.result | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/r/func_encrypt.result b/mysql-test/r/func_encrypt.result index 04af76429f8..2e5812eb44f 100644 --- a/mysql-test/r/func_encrypt.result +++ b/mysql-test/r/func_encrypt.result @@ -183,3 +183,15 @@ id select_type table type possible_keys key key_len ref rows filtered Extra 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used Warnings: Note 1003 select des_decrypt(des_encrypt('hello',4),'password2') AS `des_decrypt(des_encrypt("hello",4),'password2')`,des_decrypt(des_encrypt('hello','hidden')) AS `des_decrypt(des_encrypt("hello","hidden"))` +drop table if exists t1; +create table t1 (f1 smallint(6) default null, f2 mediumtext character set utf8) +engine=myisam default charset=latin1; +insert into t1 values (null,'contraction\'s'); +insert into t1 values (-15818,'requirement\'s'); +select encrypt(f1,f2) as a from t1,(select encrypt(f1,f2) as b from t1) a; +a +NULL +re3VF.eOzS/lg +NULL +re3VF.eOzS/lg +drop table t1; |