Levy A.
45d959635c
fix: check if index exists with the same name
2025-08-13 08:55:17 +03:00
Diego Reis
7c70ac2c4a
Fix #2390
...
Single quotes inside a string literal have to be doubled
2025-08-01 11:37:13 -03:00
Jussi Saurio
c5c3898896
tcl: comment out test that fails due to #2390
2025-08-01 15:45:36 +03: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
Jussi Saurio
58f98391d0
test/tcl: fix alter table test assertions and require index flag on some tests
2025-07-22 11:11:50 +03:00
Nils Koch
ed8600db48
add test for dropping special column names
2025-07-20 21:20:59 +01:00
Levy A.
49a6ddad97
wip
2025-06-11 14:19:04 -03:00
Levy A.
a7761e431b
fix: escape string literals
2025-06-11 14:18:41 -03:00
Levy A.
41cb13aa74
fix: ignore non-constants
2025-06-11 14:18:41 -03:00
Levy A.
7638b0dab7
fix: use default value on empty columns added via ALTER TABLE
2025-06-11 14:18:19 -03:00
Levy A.
326a8b39db
fix: default values not being converted to SQL
2025-06-11 14:17:36 -03:00
Levy A.
6945c0c09e
fix+refactor: incorrect label placement
...
also added a `cursor_loop` helper on `ProgramBuilder` to avoid making
this mistake in the future. this is zero-cost, and will be optimized to
the same thing (hopefully).
2025-06-11 14:17:36 -03:00
Levy A.
6d0a3c95c6
more tests!
2025-06-11 14:17:36 -03:00
Levy A.
d8bc8c48c3
add constraint dropping tests
2025-06-11 14:17:36 -03:00
Levy A.
de2ac89ad2
feat: complete ALTER TABLE implementation
2025-06-11 14:17:36 -03:00
Levy A.
023a116b0d
feat: initial implementation of ALTER TABLE
...
only supporting renaming tables
2025-05-08 09:24:56 -03:00