# File lib/criteria/mysql.rb, line 16 def MysqlTable.create(db, table, *args) sql = super(table, *args) begin db.query(sql) rescue MysqlError => e raise unless e.message =~ /Table '#{table}' already exists/ end tbl = MysqlTable.new(db, table) tbl._store_cols(args) return tbl end