Magnus Lundberg
08/09/2023, 7:02 AMCREATE TABLE Person (
id INTEGER PRIMARY KEY NOT NULL,
name TEXT NOT NULL
);
insertNewPerson:
INSERT INTO Person(id, name)
VALUES(?, ?);
The generated source code does not compile.
I generates a query with a negative identifier
If I remove the minus sign on the identifier the code compiles. Has anyone else encountered this problem and know the solution?Magnus Lundberg
08/09/2023, 7:02 AMpublic class AppDatabaseQueries(
driver: SqlDriver,
) : TransacterImpl(driver) {
public fun insertNewPerson(id: Long?, name: String) {
driver.execute(−1_357_689_605, """
|INSERT INTO Person(id, name)
|VALUES(?, ?)
""".trimMargin(), 2) {
bindLong(0, id)
bindString(1, name)
}
notifyQueries(−1_357_689_605) { emit ->
emit("Person")
}
}
}
hfhbd
08/09/2023, 10:04 AMMagnus Lundberg
08/09/2023, 10:07 AMMagnus Lundberg
08/09/2023, 10:39 AMhfhbd
08/10/2023, 7:45 PMMagnus Lundberg
08/10/2023, 7:49 PMMagnus Lundberg
08/10/2023, 7:49 PMMagnus Lundberg
08/11/2023, 12:07 PM