Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

[WebSQL] Wrong error code returned for constraint error #11572

Closed
fatso83 opened this issue Aug 21, 2013 · 2 comments
Closed

[WebSQL] Wrong error code returned for constraint error #11572

fatso83 opened this issue Aug 21, 2013 · 2 comments
Labels

Comments

@fatso83
Copy link

fatso83 commented Aug 21, 2013

According to W3 WebDatabase spec the SqlError code for Constraint errors is 6. Node+PhantomJS returns 1.

{"code":1,"message":"constraint failed"}

This specific error was caused on INSERTing a duplicate entry into a table. All browsers return { code : 6, ...} .

@dbaba
Copy link

dbaba commented Sep 30, 2015

I've got the similar error saying {"code":1,"message":"could not execute statement (1555 UNIQUE constraint failed: TABLE_NAME.COLUMN_NAME)"}.
PhantomJS should return code:6 (CONSTRAINT_ERR) rather than 1.

@ghost ghost removed the old.Domain-WebKit label Dec 19, 2017
@stale stale bot added the stale label Dec 26, 2019
@stale
Copy link

stale bot commented Dec 29, 2019

Due to our very limited maintenance capacity (see #14541 for more details), we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed. In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!

@stale stale bot closed this as completed Dec 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants