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
Create a new project with Ioinic + Angular and use the https://github.com/capacitor-community/sqlite plugin
Configure it for Electron for windows 11 X64
Create a Table with at least 3 fields
Use the mehtod executeSet(set: capSQLiteSet[], transaction?: boolean, returnMode?: string, isSQL92?: boolean): Promise<capSQLiteChanges>; and pass a values array with 10k values.
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!!!)
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
https://github.com/capacitor-community/sqlite
pluginexecuteSet(set: capSQLiteSet[], transaction?: boolean, returnMode?: string, isSQL92?: boolean): Promise<capSQLiteChanges>;
and pass a values array with 10k values.Expected behavior I expect the same behavior like
executeSet
method in Android platform (it works fast and perfect!!!)Screenshots![image](https://github.com/capacitor-community/electron/assets/102338437/bb0385ba-e735-40c1-8955-82e27992cf6e)
Project Information: Capacitor: "@capacitor/core": "^5.0.0" Plugins: