joao.faria
2ba643cd68
fix: prevent DROP TABLE when table is referenced by foreign keys
...
Add foreign key constraint check in translate_drop_table to reject
dropping tables that are referenced by foreign keys when
PRAGMA foreign_keys=ON
2025-11-04 12:32:19 -03:00
rajajisai
9061024fad
add test
2025-10-11 21:39:46 -04:00
Jussi Saurio
86b1232268
chore: enable indexes by default
2025-08-01 15:44:56 +03:00
Jussi Saurio
022f679fab
chore: make every CREATE TABLE stmt in entire repo have 1 space after tbl name
...
`BTreeTable::to_sql` makes us incompatible with SQLite by losing e.g. the original whitespace provided during the CREATE TABLE command.
For now let's fix our tests by regex-replacing every CREATE TABLE in
the entire repo to have exactly 1 space after the table name in the
CREATE TABLE statement.
2025-07-22 11:35:21 +03:00
Pere Diaz Bou
814f68043d
filter out sqlite3 executable too
2025-06-17 19:33:23 +02:00
Pere Diaz Bou
032337745b
disable more tests without index
2025-06-17 19:33:23 +02:00
Anton Harniakou
b6a5cbe626
Test that DROP TABLE also deletes the related indices
2025-05-03 12:41:19 +03:00
Pekka Enberg
65bf33023c
core: Fix Destroy opcode root page handling
...
The `p1` register points to the root page, not to a cursor.
Fixes #1136
2025-03-24 10:54:49 +02:00
Zaid Humayun
e57e0cb497
tcl tests: added DROP TABLE tcl tests
2025-02-19 21:46:26 +05:30