Commit b89bbaac authored by unknown's avatar unknown
Browse files

This is a patch to test the default schema location.


client/mysqlslap.c:
  Formating
mysql-test/t/mysqlslap.test:
  Adding test to test for using non-default  database.
parent 8a7c1e73
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -296,8 +296,8 @@ int main(int argc, char **argv)
  if (!opt_only_print) 
  {
    if (!(mysql_real_connect(&mysql, host, user, opt_password,
                             argv[0],opt_mysql_port,opt_mysql_unix_port,
                             client_flag)))
                             NULL, opt_mysql_port,
                             opt_mysql_unix_port, client_flag)))
    {
      fprintf(stderr,"%s: %s\n",my_progname,mysql_error(&mysql));
      free_defaults(defaults_argv);
+2 −0
Original line number Diff line number Diff line
@@ -12,3 +12,5 @@
--exec $MYSQL_SLAP --only-print --delimiter=";" --query="select * from t1;select * from t2" --create="CREATE TABLE t1 (id int, name varchar(64)); create table t2(foo1 varchar(32), foo2 varchar(32)); INSERT INTO t1 VALUES (1, 'This is a test'); insert into t2 values ('test', 'test2')" --engine="heap,myisam"

--exec $MYSQL_SLAP --silent --concurrency=5 --iterations=20 --delimiter=";" --query="select * from t1;select * from t2" --create="CREATE TABLE t1 (id int, name varchar(64)); create table t2(foo1 varchar(32), foo2 varchar(32)); INSERT INTO t1 VALUES (1, 'This is a test'); insert into t2 values ('test', 'test2')"

--exec $MYSQL_SLAP --silent --concurrency=5 --iterations=20 --number-int-cols=2 --number-char-cols=3 --auto-generate-sql --create-schema=test_env