Commit 45f6e5c0 authored by John Esmet's avatar John Esmet

[t:3414] starting the replace-ignore test script generator


git-svn-id: file:///svn/mysql/tests/mysql-test@38101 c7de825b-a66e-492c-adef-691d508d4ae1
parent ed8cad2a
def sqlgen_setup():
print "--disable_warnings"
print "drop table if exists t;"
print "--enable_warnings"
def sqlgen_create_table(fields, pk, keys):
print "create table t ("
print "%s, " % fields
print "primary key (%s), " % pk
print "key (%s)) " % keys
print "engine = tokudb;"
def sqlgen_drop_table()
print "drop table t"
print "# Tokutek"
print "# Test that replace into and insert ignore insertions "
print "# work under various index schemas. "
print "#"
print "# this test is interesting because tokudb can do blind "
print "# (searchless) insertions into dictionaries when keys are"
print "# a subset of the primary key, but not otherwise."
print ""
sqlgen_setup()
print ""
print "# table whose keys are a subset of the primary key"
fields = "a int, b int, c int"
pk = "a, b, c"
keys = "a, b"
sqlgen_create_table(fields, pk, keys)
print ""
sqlgen_drop_table()
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