-
Hi, I'm currently working on an Ionic app that we recently updated to use Capacitor 5, TypeORM, and capacitor-community/sqlite for data storage. Previously, we were using an older Cordova setup. We're encountering an issue when saving entities: if a string object contains the 'returning' keyword, we encounter an error.
The error generated: I'm uncertain whether this issue is related to TypeORM or SQLite, but based on the console log, the query generated by TypeORM appears to be correct. Therefore, I suspect it might be a bug or issue within capacitor-community/sqlite. Could someone help me figure out what's going on and possibly provide information on how to resolve the issue? This is a critical issue as our app is actively used by customers, and currently, they are unable to synchronize their work if any of their strings contain the 'returning' keyword. Thank you! Update just tried downgrading to 5.0.4, and it works as we expect. So my guess is that the error has something todo with the 5.0.5 release "add insert/delete/update with returning" 293f032 |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
@mla03 on which platform |
Beta Was this translation helpful? Give feedback.
-
@mla03 for the run command put the values in a separate are and run(sql, values). Il will have a look for the reason why it was working on 5.0.4 and not in 5.0.5. I am currently working on updating another plugin and this take all my time |
Beta Was this translation helpful? Give feedback.
-
Hey, @jepiqueau and @mla03 I looked into version 5.0.5. See this line it checks for "RETURNING" string in SQL statement from where this error arises from, which was not present in version 5.0.4 here It would be best to always pass values as a second parameter to the function. :) |
Beta Was this translation helpful? Give feedback.
-
@mla03 @ygarg465 i am working on it should be fixed in next release |
Beta Was this translation helpful? Give feedback.
@mla03 @ygarg465 fix i 5.5.1