You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
drop_table_if_exists_syntax do |table_name|
"drop table if exists #{table_name}"
end
I cleaned cache ~/.cache/crystal/
crystal version 1.7.3
What am I doing wrong?
The text was updated successfully, but these errors were encountered:
vectorselector
changed the title
DROP TABLE IF EXISTS not working. Exception: no such table: tablename (SQLite3::Exception)
DROP TABLE IF EXISTS issue. Exception: no such table: tablename (SQLite3::Exception)
Apr 5, 2023
DB.open "sqlite3:./mydb.sqlite3" do |db|
db.exec "DROP TABLE IF EXISTS tablename"
end
triggers "Exception: no such table: tablename (SQLite3::Exception)"
when:
sqlite3 mydb.sqlite3
SQLite version 3.31.1 2020-01-27 19:55:54
Enter ".help" for usage hints.
sqlite> .tables
tablename
specifically invokes (lines 81-83)
drop_table_if_exists_syntax do |table_name|
"drop table if exists #{table_name}"
end
crystal version 1.7.3
What am I doing wrong?
The text was updated successfully, but these errors were encountered: