Skip to content

Commit

Permalink
Fix cleanup stage to delete tables in correct order
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey2k committed Apr 6, 2018
1 parent 025cbde commit e1e5cde
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tpcc_common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -587,15 +587,15 @@ function cleanup()

for i = 1, sysbench.opt.tables do
print(string.format("Dropping tables '%d'...", i))
con:query("DROP TABLE IF EXISTS stock" .. i )
con:query("DROP TABLE IF EXISTS warehouse" .. i )
con:query("DROP TABLE IF EXISTS district" .. i )
con:query("DROP TABLE IF EXISTS customer" .. i )
con:query("DROP TABLE IF EXISTS history" .. i )
con:query("DROP TABLE IF EXISTS new_orders" .. i )
con:query("DROP TABLE IF EXISTS orders" .. i )
con:query("DROP TABLE IF EXISTS order_line" .. i )
con:query("DROP TABLE IF EXISTS orders" .. i )
con:query("DROP TABLE IF EXISTS customer" .. i )
con:query("DROP TABLE IF EXISTS district" .. i )
con:query("DROP TABLE IF EXISTS stock" .. i )
con:query("DROP TABLE IF EXISTS item" .. i )
con:query("DROP TABLE IF EXISTS warehouse" .. i )
end
end

Expand Down

0 comments on commit e1e5cde

Please sign in to comment.