Commit 22c52efb authored by unknown's avatar unknown

test oversized password

fix to make table.cc compile


mysql-test/mysql-test-run.sh:
  explictily state empty password for slave thread
mysql-test/t/rpl000017-slave.sh:
  test oversized passwords for slave
mysql-test/t/rpl000017.test:
  test oversized passwords
sql/table.cc:
  fix to make it compile
parent bf1f8fd3
...@@ -392,6 +392,7 @@ start_slave() ...@@ -392,6 +392,7 @@ start_slave()
master_info="--master-user=root \ master_info="--master-user=root \
--master-connect-retry=1 \ --master-connect-retry=1 \
--master-host=127.0.0.1 \ --master-host=127.0.0.1 \
--master-password= \
--master-port=$MASTER_MYPORT \ --master-port=$MASTER_MYPORT \
--server-id=2" --server-id=2"
else else
......
...@@ -2,8 +2,8 @@ cat > $MYSQL_TEST_DIR/var/slave-data/master.info <<EOF ...@@ -2,8 +2,8 @@ cat > $MYSQL_TEST_DIR/var/slave-data/master.info <<EOF
master-bin.001 master-bin.001
4 4
127.0.0.1 127.0.0.1
root replicate
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
9306 9306
1 1
EOF EOF
...@@ -2,6 +2,8 @@ connect (master,localhost,root,,test,0,mysql-master.sock); ...@@ -2,6 +2,8 @@ connect (master,localhost,root,,test,0,mysql-master.sock);
connect (slave,localhost,root,,test,0,mysql-slave.sock); connect (slave,localhost,root,,test,0,mysql-slave.sock);
connection master; connection master;
reset master; reset master;
grant file on *.* to replicate@localhost identified by
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa';
connection slave; connection slave;
slave start; slave start;
connection master; connection master;
......
...@@ -1033,7 +1033,7 @@ char *get_field(MEM_ROOT *mem, TABLE *table, uint fieldnr) ...@@ -1033,7 +1033,7 @@ char *get_field(MEM_ROOT *mem, TABLE *table, uint fieldnr)
bool check_db_name(const char *name) bool check_db_name(const char *name)
{ {
const char *start=end; const char *start=name;
while (*name) while (*name)
{ {
#if defined(USE_MB) && defined(USE_MB_IDENT) #if defined(USE_MB) && defined(USE_MB_IDENT)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment