Closed freshp86 closed 9 years ago
Managed to extract some more information from this error,
SQLError {}code: 5message: "could not prepare statement (1 near "Group": syntax error)"__proto__: SQLError
It seems that the problem lies at https://github.com/google/lovefield/blob/master/lib/backstore/web_sql.js#L273. I am guessing that "Group" is a reserved name in WebSQL which causes the syntax error.
This should be fixed by https://github.com/google/lovefield/commit/e1bc4a70f80140015757cc7b5afa045334809217. Please re-open if that is not the case.
Copied from https://github.com/google/lovefield/issues/111 and reported by codeBelt:
I get a
[object SQLError]
error if I create a table with the name 'Group'. Renaming it fixes the issues. Check it out:Website: http://codebelt.github.io/lovefield/ Repo: https://github.com/codeBelt/lovefield
On Chrome this results to the following error,
Uncaught #<SQLError>