diff options
author | unknown <monty@mashka.mysql.fi> | 2003-02-14 11:47:41 +0200 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2003-02-14 11:47:41 +0200 |
commit | 5a12dff30bc694f8d0af923b0bd2a5b79912d2ca (patch) | |
tree | 2bcccee0d1ca3eede87c86ba444c18bb917dd8cd /mysql-test | |
parent | 86ec3c8f085c65b9ac2ef8776cad956465abddd7 (diff) | |
download | mariadb-git-5a12dff30bc694f8d0af923b0bd2a5b79912d2ca.tar.gz |
Fixed problem when connecting to user without a password.
Fixed problem with LIKE and BINARY
BitKeeper/etc/ignore:
added scripts/fill_help_tables
client/mysqltest.c:
Better error messages
libmysql/libmysql.c:
Simple code cleanup
Simplified connect() and change_user() by using sub function
libmysqld/lib_sql.cc:
Ensure that new fields in MYSQL_FIELD structure is used
mysql-test/r/rpl_user_variables.result:
Cleaned up test
mysql-test/r/type_blob.result:
New test
mysql-test/t/rpl_user_variables.test:
Cleaned up test
mysql-test/t/type_blob.test:
New test
sql/item.cc:
Fixed that Item_ref returns the right character set
sql/item_cmpfunc.cc:
Fixed problem with LIKE and BINARY
sql/item_func.cc:
Don't store end ASCII(0) for string user variables
(Made some other code easier)
sql/log_event.cc:
Don't store end ASCII(0) for string user variables.
Fixed comment style
Some optimizations
sql/log_event.h:
Optimized type
sql/mini_client.cc:
Indentation changes
sql/mysql_priv.h:
Made is_update_query extern
sql/protocol.cc:
Simple code cleanup
sql/sql_acl.cc:
Code cleanup
Fixed problem when connecting to user without a password.
sql/sql_lex.h:
Fixed problem with uninitialized memory
sql/sql_parse.cc:
Fixed problem with user without passwords
Fixed some connect problems.
sql/time.cc:
removed reference to uninitialized memory
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/rpl_user_variables.result | 34 | ||||
-rw-r--r-- | mysql-test/r/type_blob.result | 4 | ||||
-rw-r--r-- | mysql-test/t/rpl_user_variables.test | 15 | ||||
-rw-r--r-- | mysql-test/t/type_blob.test | 1 |
4 files changed, 24 insertions, 30 deletions
diff --git a/mysql-test/r/rpl_user_variables.result b/mysql-test/r/rpl_user_variables.result index 618efb3840d..51a82b53052 100644 --- a/mysql-test/r/rpl_user_variables.result +++ b/mysql-test/r/rpl_user_variables.result @@ -4,9 +4,6 @@ reset master; reset slave; drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; start slave; -stop slave; -reset master; -drop table if exists t1; create table t1(n char(30)); set @i1:=12345678901234, @i2:=-12345678901234, @i3:=0, @i4:=-1; set @s1:='This is a test', @r1:=12.5, @r2:=-12.5; @@ -23,7 +20,6 @@ set @q:='abc'; insert t1 values (@q), (@q:=concat(@q, 'n1')), (@q:=concat(@q, 'n2')); set @a:=5; insert into t1 values (@a),(@a); -start slave; select * from t1; n 12345678901234 @@ -59,20 +55,20 @@ slave-bin.000001 396 User var 2 396 @r1=12.5 slave-bin.000001 439 User var 2 439 @r2=-12.5 slave-bin.000001 482 Query 1 482 use `test`; insert into t1 values (@r1), (@r2) slave-bin.000001 551 User var 2 551 @s1='This is a test' -slave-bin.000001 601 User var 2 601 @s2='' -slave-bin.000001 637 User var 2 637 @s3='abc'def' -slave-bin.000001 680 User var 2 680 @s4='abc\def' -slave-bin.000001 723 User var 2 723 @s5='abc'def' -slave-bin.000001 766 Query 1 766 use `test`; insert into t1 values (@s1), (@s2), (@s3), (@s4), (@s5) -slave-bin.000001 856 User var 2 856 @n1=NULL -slave-bin.000001 882 Query 1 882 use `test`; insert into t1 values (@n1) -slave-bin.000001 944 Query 1 944 use `test`; insert into t1 values (@n2) -slave-bin.000001 1006 Query 1 1006 use `test`; insert into t1 values (@a:=0), (@a:=@a+1), (@a:=@a+1) -slave-bin.000001 1094 User var 2 1094 @a='2' -slave-bin.000001 1130 Query 1 1130 use `test`; insert into t1 values (@a+(@b:=@a+1)) -slave-bin.000001 1202 User var 2 1202 @q='abc' -slave-bin.000001 1240 Query 1 1240 use `test`; insert t1 values (@q), (@q:=concat(@q, 'n1')), (@q:=concat(@q, 'n2')) -slave-bin.000001 1344 User var 2 1344 @a=5 -slave-bin.000001 1386 Query 1 1386 use `test`; insert into t1 values (@a),(@a) +slave-bin.000001 600 User var 2 600 @s2='' +slave-bin.000001 635 User var 2 635 @s3='abc'def' +slave-bin.000001 677 User var 2 677 @s4='abc\def' +slave-bin.000001 719 User var 2 719 @s5='abc'def' +slave-bin.000001 761 Query 1 761 use `test`; insert into t1 values (@s1), (@s2), (@s3), (@s4), (@s5) +slave-bin.000001 851 User var 2 851 @n1=NULL +slave-bin.000001 877 Query 1 877 use `test`; insert into t1 values (@n1) +slave-bin.000001 939 Query 1 939 use `test`; insert into t1 values (@n2) +slave-bin.000001 1001 Query 1 1001 use `test`; insert into t1 values (@a:=0), (@a:=@a+1), (@a:=@a+1) +slave-bin.000001 1089 User var 2 1089 @a='2' +slave-bin.000001 1124 Query 1 1124 use `test`; insert into t1 values (@a+(@b:=@a+1)) +slave-bin.000001 1196 User var 2 1196 @q='abc' +slave-bin.000001 1233 Query 1 1233 use `test`; insert t1 values (@q), (@q:=concat(@q, 'n1')), (@q:=concat(@q, 'n2')) +slave-bin.000001 1337 User var 2 1337 @a=5 +slave-bin.000001 1379 Query 1 1379 use `test`; insert into t1 values (@a),(@a) drop table t1; stop slave; diff --git a/mysql-test/r/type_blob.result b/mysql-test/r/type_blob.result index ba8e01d6319..3ad8c8baec3 100644 --- a/mysql-test/r/type_blob.result +++ b/mysql-test/r/type_blob.result @@ -130,6 +130,10 @@ select d from t1 having d like "%HELLO%"; d HELLO HELLO MY +select d from t1 having d like "%HE%LLO%"; +d +HELLO +HELLO MY select t from t1 order by t; t NULL diff --git a/mysql-test/t/rpl_user_variables.test b/mysql-test/t/rpl_user_variables.test index 7de52367fba..561af7256d2 100644 --- a/mysql-test/t/rpl_user_variables.test +++ b/mysql-test/t/rpl_user_variables.test @@ -1,14 +1,8 @@ +# +# Test of replicating user variables +# source include/master-slave.inc; -connection master; -save_master_pos; -connection slave; -sync_with_master; -stop slave; -reset master; -connection master; ---disable_warnings -drop table if exists t1; ---enable_warnings + create table t1(n char(30)); set @i1:=12345678901234, @i2:=-12345678901234, @i3:=0, @i4:=-1; set @s1:='This is a test', @r1:=12.5, @r2:=-12.5; @@ -27,7 +21,6 @@ set @a:=5; insert into t1 values (@a),(@a); save_master_pos; connection slave; -start slave; sync_with_master; select * from t1; show binlog events from 141; diff --git a/mysql-test/t/type_blob.test b/mysql-test/t/type_blob.test index 6a55c61f8a1..1de08ff4e4d 100644 --- a/mysql-test/t/type_blob.test +++ b/mysql-test/t/type_blob.test @@ -87,6 +87,7 @@ select b from t1 where b like "%HELLO%"; select d from t1 where d like "%HELLO%"; select c from t1 having c like "%HELLO%"; select d from t1 having d like "%HELLO%"; +select d from t1 having d like "%HE%LLO%"; select t from t1 order by t; select c from t1 order by c; select b from t1 order by b; |