Closed yoprogramo closed 4 years ago
I have a websql database that I'm trying to convert (apple does not support anymore websql) and my table have a field with the same name of the table (in the table I have problems with) and, when I try to insert some values I receive this error:
Unhandled Promise Rejection: TypeError: JSON.stringify cannot serialize cyclic structures. callbackFromNative — cordova.js:314 (anonymous function) — cordova.js:972 promiseReactionJob
For compatibility reasons I cannot just change the name of the fields/table. There exist some other workaround?
Sounds like you found a workaround?
Yes, it was my fault trying to store a wrong value for the column. Fixed already in my code.
I have a websql database that I'm trying to convert (apple does not support anymore websql) and my table have a field with the same name of the table (in the table I have problems with) and, when I try to insert some values I receive this error:
Unhandled Promise Rejection: TypeError: JSON.stringify cannot serialize cyclic structures. callbackFromNative — cordova.js:314 (anonymous function) — cordova.js:972 promiseReactionJob
For compatibility reasons I cannot just change the name of the fields/table. There exist some other workaround?