Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix AS * Fix AS in IntelliJ test * Workaround for not working DEFAULT usage Co-authored-by: hfhbd <hfhbd@users.noreply.github.com>
- Loading branch information
Showing
5 changed files
with
19 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 6 additions & 4 deletions
10
...src/test/integration-hsql/src/main/sqldelight/app/cash/sqldelight/hsql/integration/Dog.sq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
CREATE TABLE dog ( | ||
name VARCHAR(8) NOT NULL, | ||
breed VARCHAR(40) NOT NULL, | ||
is_good BOOLEAN DEFAULT TRUE NOT NULL | ||
is_good BOOLEAN DEFAULT TRUE NOT NULL, | ||
id INTEGER NOT NULL, | ||
id_bigger_than_ten BOOLEAN AS kotlin.Boolean GENERATED ALWAYS AS (id > 10) NOT NULL | ||
); | ||
|
||
insertDog: | ||
INSERT INTO dog | ||
VALUES (?, ?, ?); | ||
INSERT INTO dog (name, breed, is_good, id) | ||
VALUES (?, ?, ?, ?); | ||
|
||
selectDogs: | ||
SELECT * | ||
FROM dog; | ||
FROM dog; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters