ankushg
05/06/2022, 11:09 PMjw
05/06/2022, 11:20 PMhfhbd
05/10/2022, 3:28 PMPTHREAD_MUTEX_RECURSIVE
of native driver is always platform.posix.wint_t
but I guess it should be Int or UIntalec
05/10/2022, 3:30 PMalec
05/10/2022, 3:30 PMalec
05/10/2022, 3:30 PMhfhbd
05/10/2022, 3:31 PMalec
05/10/2022, 3:31 PMhfhbd
05/10/2022, 3:31 PMalec
05/10/2022, 3:31 PMhfhbd
05/10/2022, 3:45 PMkpgalligan
05/10/2022, 9:21 PMkpgalligan
05/10/2022, 9:21 PMlilypuchi
05/15/2022, 6:48 AM0.sqm
CREATE TABLE IF NOT EXISTS entry(
...
);
1.sqm
PRAGMA foreign_keys=off;
BEGIN TRANSACTION;
CREATE TABLE IF NOT EXISTS entry_temp(
...
key INTEGER,
FOREIGN KEY(key) REFERENCES ...
);
INSERT INTO entry_temp (...) SELECT * FROM entry;
DROP TABLE entry;
ALTER TABLE entry_temp RENAME TO entry;
COMMIT;
PRAGMA foreign_keys=on;
But upon running generateCommonMainDBInterface
task I get an error for with the following stacktrace.
> A failure occurred while executing com.squareup.sqldelight.gradle.SqlDelightTask$GenerateInterfaces
> Failed to compile SqlInsertStmtImpl(INSERT_STMT): [] :
INSERT INTO entry(...)
VALUES (?, ?, ?, ...)
java.lang.IllegalStateException: Cannot get reference table for psi type class sqldelight.com.alecstrong.sql.psi.core.psi.impl.SqlNewTableNameImpl
This INSERT
statement is written in the .sq
file and is syntactically correct.
However if I don’t rename the table and use entry_temp
as it is (with necessary changes in .sq
file as well), the task runs successfully.
Am I missing something here? blob thinking fasteygraber
05/20/2022, 11:29 PMjw
05/20/2022, 11:32 PMjw
05/20/2022, 11:32 PMjw
05/20/2022, 11:36 PMTrevor Stone
05/21/2022, 12:05 AMjw
05/21/2022, 12:58 AMTrevor Stone
05/21/2022, 1:01 AMjw
05/21/2022, 1:02 AMjw
05/21/2022, 1:02 AMjw
05/21/2022, 1:02 AMjw
05/21/2022, 1:03 AMjw
05/21/2022, 5:07 AMjw
05/21/2022, 5:08 AMspierce7
05/21/2022, 4:06 PMjessewilson
05/21/2022, 8:36 PMspierce7
05/21/2022, 9:21 PM