Skip to content
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

bug: SQLite RETURNING fails #605

Open
MonicaExplan opened this issue Nov 29, 2024 · 0 comments
Open

bug: SQLite RETURNING fails #605

MonicaExplan opened this issue Nov 29, 2024 · 0 comments
Labels
bug/fix Something isn't working needs: triage

Comments

@MonicaExplan
Copy link

MonicaExplan commented Nov 29, 2024

Hi,

I need hook value change in one filed in my table. On Changed value then I'll notify user using local notification

I inserted "RETURNING" at the end of the UPSERT statement and I get an error.

Here https://www.sqlite.org/lang_returning.html:
"..
The RETURNING syntax has been supported by SQLite since version 3.35.0 (2021-03-12).
.."

So, RETURNING IN supported in this sqlite plugin?
Many thanks
Monica

Plugin version:
"@capacitor-community/sqlite": "6.0.1"

Platform(s):
vue 3
Ionic 7
capacitor 6

Current behavior:
If I put the RETURNING, with * or status 1, it goes into error
[error] - {"errorMessage":"Run: Failed in runSQL : Error: prepareSQL prepare failed rc: 1 message: near ";": syntax error","message":"Run: Failed in runSQL : Error: prepareSQL prepare failed rc: 1 message: near ";": syntax error"}

@MonicaExplan MonicaExplan added bug/fix Something isn't working needs: triage labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/fix Something isn't working needs: triage
Projects
None yet
Development

No branches or pull requests

1 participant