-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Complex insert statement does not compile #262
Labels
Comments
Can you also include the customer schema, then I can drop this in as a unit
test
…On Mon, May 10, 2021 at 4:58 AM Samuel Bichsel ***@***.***> wrote:
Dialect: SQLite
failing sql:
WITH new(number, modificationDate, firstName, lastName, languageId, telephoneNumber1, email1, street, city, zipCode, countryId) AS ( VALUES (?,?,?,?,?,?,?,?,?,?,?) )
INSERT OR REPLACE INTO customer (localId, number, modificationDate, firstName, lastName, languageId, telephoneNumber1, email1, street, city, zipCode, countryId)
SELECT old.localId, new.number, new.modificationDate, new.firstName, new.lastName, new.languageId, new.telephoneNumber1, new.email1, new.street, new.city, new.zipCode, new.countryId
FROM new LEFT JOIN customer AS old ON new.number = old.number;
The above statements doe not compile in sqldelight with the error: Cannot
bind unknown types or null. Running it as a SQL statement works fine.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#262>, or unsubscribe
<https:/notifications/unsubscribe-auth/AAMZBQA2RHWI5AVIRT47AYDTM6NZXANCNFSM44QUYGPA>
.
|
Sure. I added the scheme and the used helper classes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dialect: SQLite
failing sql:
The above statements doe not compile in sqldelight with the error:
Cannot bind unknown types or null
. Running it as a SQL statement works fine.Scheme:
Helper classes:
The text was updated successfully, but these errors were encountered: