~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/suite/slap/t/create_table.test

  • Committer: Lee Bieber
  • Date: 2010-11-20 23:45:43 UTC
  • mfrom: (1938.4.8 trunk)
  • Revision ID: kalebral@gmail.com-20101120234543-xe4uzonpjsk08cr6
Merge Brian - refactor share

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Test concurrency operation on create table
 
2
 
 
3
# This is here so that something appears in the log, otherwise test-run
 
4
# complains.
 
5
SELECT 1;
 
6
 
 
7
CREATE SCHEMA drizzleslap;
 
8
 
 
9
--exec $DRIZZLE_SLAP --silent --iterations=20 --query="CREATE TABLE IF NOT EXISTS t1 (id int, name varchar(64)); INSERT INTO t1 VALUES (1, 'This is a test')" --delimiter=";"
 
10
 
 
11
# We want to know that atleast one insert happened
 
12
SELECT if((count(id) > 1), "YES", "NO") from drizzleslap.t1;
 
13
 
 
14
drop table drizzleslap.t1;
 
15
drop schema drizzleslap;