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
{{ message }}
Repository navigation
ALTER TABLE RENAME TO on a missing table throws instead of returning 1 #2706
ALTER TABLE x RENAME TO y on a table x that does not exist returns 1 and adds a key y holding undefined to the database's tables. Nothing is renamed and there is no error.
alasql('ALTER TABLE nosuch RENAME TO y');// 1Object.keys(alasql.databases.alasql.tables);// [..., 'y'], value undefined
Code that renames a table "if it is there" may rely on the missing error, so this waits for 5.0 (decided 2026-10-21).
Direction for 5.0
Throw Can not rename a table "x" because it does not exist, as SQLite does (no such table: x), and add nothing to the database.
changed the title [-]v5: ALTER TABLE RENAME TO on a missing table throws instead of returning 1[/-][+]ALTER TABLE RENAME TO on a missing table throws instead of returning 1[/+]on Oct 21, 2026
Activity
[-]v5: ALTER TABLE RENAME TO on a missing table throws instead of returning 1[/-][+]ALTER TABLE RENAME TO on a missing table throws instead of returning 1[/+]