summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2004-09-02 16:57:26 +0300
committerunknown <monty@mysql.com>2004-09-02 16:57:26 +0300
commit762bee96d2be00d45d53cf9434383b325ce54f79 (patch)
treec8687c9c8877b4526e838a928b732b81f40f80ad
parentfe937a2b1b9a795df9ff71cd39b58905c9f8be69 (diff)
downloadmariadb-git-762bee96d2be00d45d53cf9434383b325ce54f79.tar.gz
After merge fixes
mysql-test/mysql-test-run.sh: Export MASTER_MYSOCK (used in some tests) mysql-test/t/alter_table.test: Use MASTER_MYSOCK instead of master.sock
-rw-r--r--mysql-test/mysql-test-run.sh2
-rw-r--r--mysql-test/r/lowercase_table.result12
-rw-r--r--mysql-test/t/alter_table.test4
-rw-r--r--mysql-test/t/lowercase_table.test2
-rw-r--r--sql/sql_base.cc2
-rw-r--r--sql/table.cc1
-rw-r--r--tests/client_test.c2
7 files changed, 10 insertions, 15 deletions
diff --git a/mysql-test/mysql-test-run.sh b/mysql-test/mysql-test-run.sh
index 454dc7b327b..b847e8c36e4 100644
--- a/mysql-test/mysql-test-run.sh
+++ b/mysql-test/mysql-test-run.sh
@@ -438,7 +438,7 @@ SLAVE_MYERR="$MYSQL_TEST_DIR/var/log/slave.err"
CURRENT_TEST="$MYSQL_TEST_DIR/var/log/current_test"
SMALL_SERVER="--key_buffer_size=1M --sort_buffer=256K --max_heap_table_size=1M"
-export MASTER_MYPORT SLAVE_MYPORT MYSQL_TCP_PORT
+export MASTER_MYPORT SLAVE_MYPORT MYSQL_TCP_PORT MASTER_MYSOCK
if [ x$SOURCE_DIST = x1 ] ; then
MY_BASEDIR=$MYSQL_TEST_DIR
diff --git a/mysql-test/r/lowercase_table.result b/mysql-test/r/lowercase_table.result
index dc8fffa0f90..f0cb4cc3ccf 100644
--- a/mysql-test/r/lowercase_table.result
+++ b/mysql-test/r/lowercase_table.result
@@ -45,10 +45,11 @@ count(bags.a)
drop table t1;
create database mysqltest;
use MYSQLTEST;
+create table t1 (a int);
select T1.a from MYSQLTEST.T1;
a
select t1.a from MYSQLTEST.T1;
-Unknown table 't1' in field list
+a
select mysqltest.t1.* from MYSQLTEST.t1;
a
select MYSQLTEST.t1.* from MYSQLTEST.t1;
@@ -59,7 +60,9 @@ select MYSQLTEST.T1.* from T1;
a
alter table t1 rename to T1;
select MYSQLTEST.t1.* from MYSQLTEST.t1;
+a
drop database mysqltest;
+use test;
create table t1 (a int);
create table t2 (a int);
delete p1.*,P2.* from t1 as p1, t2 as p2 where p1.a=P2.a;
@@ -76,10 +79,3 @@ ERROR 42000: Not unique table/alias: 'C'
drop table t1, t2;
show tables;
Tables_in_test
-create table t1 (a int);
-select TEST.t1.* from TEST.t1;
-a
-alter table t1 rename to T1;
-select TEST.t1.* from TEST.t1;
-a
-drop table t1;
diff --git a/mysql-test/t/alter_table.test b/mysql-test/t/alter_table.test
index 317af337c46..eb35aa90fe2 100644
--- a/mysql-test/t/alter_table.test
+++ b/mysql-test/t/alter_table.test
@@ -110,14 +110,14 @@ drop database mysqltest;
#
# Rights for renaming test (Bug #3270)
#
-connect (root,localhost,root,,test,$MASTER_MYPORT,master.sock);
+connect (root,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK);
connection root;
--disable_warnings
create database mysqltest;
--enable_warnings
create table mysqltest.t1 (a int,b int,c int);
grant all on mysqltest.t1 to mysqltest_1@localhost;
-connect (user1,localhost,mysqltest_1,,mysqltest,$MASTER_MYPORT,master.sock);
+connect (user1,localhost,mysqltest_1,,mysqltest,$MASTER_MYPORT,$MASTER_MYSOCK);
connection user1;
-- error 1142
alter table t1 rename t2;
diff --git a/mysql-test/t/lowercase_table.test b/mysql-test/t/lowercase_table.test
index 602a05a7848..b36d63bfd72 100644
--- a/mysql-test/t/lowercase_table.test
+++ b/mysql-test/t/lowercase_table.test
@@ -39,7 +39,6 @@ create database mysqltest;
use MYSQLTEST;
create table t1 (a int);
select T1.a from MYSQLTEST.T1;
---error 1109
select t1.a from MYSQLTEST.T1;
select mysqltest.t1.* from MYSQLTEST.t1;
select MYSQLTEST.t1.* from MYSQLTEST.t1;
@@ -48,6 +47,7 @@ select MYSQLTEST.T1.* from T1;
alter table t1 rename to T1;
select MYSQLTEST.t1.* from MYSQLTEST.t1;
drop database mysqltest;
+use test;
#
# multiupdate/delete & --lower-case-table-names
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index 921e1c1ec42..ac5008717e6 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -2458,7 +2458,7 @@ insert_fields(THD *thd,TABLE_LIST *tables, const char *db_name,
'name' of the item which may be used in the select list
*/
strmake(name_buff, db_name, sizeof(name_buff)-1);
- my_casedn_str(name_buff);
+ my_casedn_str(files_charset_info, name_buff);
db_name= name_buff;
}
diff --git a/sql/table.cc b/sql/table.cc
index eb3e0e8d1a7..8b018d61e5a 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -1120,7 +1120,6 @@ void append_unescaped(String *res, const char *pos, uint length)
res->append(*pos);
break;
}
- pos++;
}
res->append('\'');
}
diff --git a/tests/client_test.c b/tests/client_test.c
index ed186837d28..ae87fbc70a0 100644
--- a/tests/client_test.c
+++ b/tests/client_test.c
@@ -10189,7 +10189,7 @@ static void get_options(int argc, char **argv)
int ho_error;
if ((ho_error= handle_options(&argc, &argv, client_test_long_options,
- get_one_option, 0)))
+ get_one_option)))
exit(ho_error);
if (tty_password)