Skip to content

Commit

Permalink
quick workaround for SYNTAX_ERR redefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher J. Brody committed Sep 27, 2019
1 parent 1a45783 commit 1c8b151
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#### cordova-sqlite-storage 3.3.1-dev

- quick workaround for `SYNTAX_ERR` redefinition

#### cordova-sqlite-storage 3.3.0

- new default page & cache sizes with [email protected]
Expand Down
2 changes: 1 addition & 1 deletion src/ios/SQLitePlugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ enum WebSQLError {
VERSION_ERR = 2,
TOO_LARGE_ERR = 3,
QUOTA_ERR = 4,
SYNTAX_ERR = 5,
SYNTAX_ERR_ = 5,
CONSTRAINT_ERR = 6,
TIMEOUT_ERR = 7
};
Expand Down
2 changes: 1 addition & 1 deletion src/ios/SQLitePlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ +(int)mapSQLiteErrorCode:(int)code
// the websql error code
switch(code) {
case SQLITE_ERROR:
return SYNTAX_ERR;
return SYNTAX_ERR_;
case SQLITE_FULL:
return QUOTA_ERR;
case SQLITE_CONSTRAINT:
Expand Down

0 comments on commit 1c8b151

Please sign in to comment.