When a CREATE TABLE AS statement is part of a larger transaction and it aborts
due to an error condition in the SELECT on the right-hand side, this can leave
the sqlite3_master table with a blank entry which subsequent database
connections will interpret as a corrupt database. The following SQL
illustrates the problem: