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

Cannot read properties of undefined (reading 'lastId') #275

Open
ariumdevelopment opened this issue Jan 3, 2024 · 0 comments
Open

Cannot read properties of undefined (reading 'lastId') #275

ariumdevelopment opened this issue Jan 3, 2024 · 0 comments

Comments

@ariumdevelopment
Copy link

The plugin shows the message "Error occurred in handler for 'CapacitorSQLite-executeSet': Error: ExecuteSet failed: TypeError: Cannot read properties of undefined (reading 'lastId')"
when i pass an 'executeSet' like:
[ {statement: 'INSERT INTO MyTable(Field1, Field2, Field3) VALUES(?, ?, ?);', values: [ [1,2,3], [4,5,6], [7,8,9] ]}, {statement: 'INSERT INTO MyOtherTable(Field1, Field2, Field3) VALUES(?, ?, ?);', values: [ [11,12,13], [14,15,16], [17,18,19] ]} ]
with someting like 10k values per table!

To Reproduce

  1. Create a new project with Ioinic + Angular and use the https://github.com/capacitor-community/sqlite plugin
  2. Configure it for Electron for windows 11 X64
  3. Create a Table with at least 3 fields
  4. Use the mehtod executeSet(set: capSQLiteSet[], transaction?: boolean, returnMode?: string, isSQL92?: boolean): Promise<capSQLiteChanges>; and pass a values array with 10k values.
  5. Execute the App and the mentioned method and the error appears.

Expected behavior
I expect the same behavior like executeSet method in Android platform (it works fast and perfect!!!)

Screenshots
image

Project Information:
Capacitor: "@capacitor/core": "^5.0.0"
Plugins:

  1. @capacitor-community/sqlite": "5.2.5"
  2. @capacitor-community/electron": "5.0.1"
  3. "electron": "^25.2.0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant