You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1
Original file line number
Diff line number
Diff line change
@@ -495,6 +495,7 @@ See **Security of sensitive data** in the [Security](#security) section above.
495
495
- In case of ignored INSERT OR IGNORE statement WebKit Web SQL (Android/iOS) reports insertId with an old INSERT row id value while the plugin reports insertId: undefined.
496
496
- In case of a SQL error handler that does not recover the transaction, WebKit Web SQL (Android/iOS) would incorrectly report error code 0 while the plugin would report the same error code as in the SQL error handler. (In case of an error with no SQL error handler then Android/iOS WebKit Web SQL would report the same error code that would have been reported in the SQL error hander.)
497
497
- In case a transaction function throws an exception, the message and code if present are reported by the plugin but *not* by (WebKit) Web SQL.
498
+
- Inconsistent error message formatting on Android (using custom build of [`sqlcipher/android-database-sqlcipher`](https://github.com/sqlcipher/android-database-sqlcipher)) ([brodybits/cordova-sqlcipher-adapter#95](https://github.com/brodybits/cordova-sqlcipher-adapter/issues/95)), for example: `incomplete input: , while compiling: INSERT INTO test_table .data. VALUES`
498
499
- SQL error messages are inconsistent on Windows.
499
500
- There are some other differences in the SQL error messages reported by WebKit Web SQL and this plugin. NOTE that unlike the android.database.sqlite implementation on Android 4.x(+) SQLCipher for Android does not seem to include the error code in most of the error message.
Copy file name to clipboardExpand all lines: spec/www/spec/db-tx-error-mapping-test.js
+34-66
Original file line number
Diff line number
Diff line change
@@ -27,11 +27,7 @@ var mytests = function() {
27
27
// TBD QUICK TEST WORKAROUND for Android:
28
28
if(!isWindows&&isAndroid&&i===0)continue;
29
29
30
-
// GENERAL: SKIP ALL on WP8 for now
31
-
describe(scenarioList[i]+': db tx error mapping test(s)'+
32
-
((isWindows&&!isWP8) ?
33
-
' [Windows version with INCORRECT error code (0) & INCONSISTENT error message (missing actual error info)]' :
34
-
''),function(){
30
+
describe(scenarioList[i]+': db tx error mapping test(s) [TBD INCORRECT & INCONSISTENT error message on Windows - missing actual error info ref: litehelpers/Cordova-sqlite-storage#539]',function(){
35
31
varscenarioName=scenarioList[i];
36
32
varsuiteName=scenarioName+': ';
37
33
varisWebSql=(i===1);
@@ -84,9 +80,7 @@ var mytests = function() {
84
80
85
81
// GENERAL NOTE: ERROR MESSAGES are subject to improvements and other possible changes.
86
82
87
-
it(suiteName+'syntax error: command with misspelling',function(done){
88
-
if(isWP8)pending('SKIP for WP(8)');// SKIP for now
89
-
83
+
it(suiteName+'syntax error: command with misspelling [INCONSISTENT error message formatting on Android (android-database-sqlcipher)]',function(done){
it(suiteName+'INSERT syntax error [VALUES in the wrong place] with a trailing space [XXX TBD ...]',function(done){
167
-
// if (isWP8) pending('...') TBD GONE (not needed)
168
-
157
+
it(suiteName+'INSERT with VALUES in the wrong place (and with a trailing space) [INCONSISTENT error message formatting on Android (android-database-sqlcipher); TBD "incomplete input" vs "syntax error" message IGNORED on (WebKit) Web SQL on Android 7.0(+) & iOS 12.0(+)]',function(done){
/* ** TBD QUICK TEST WORKAROUND for Android [SQLCipher for Android error message missing error code]:
700
673
else if (isAndroid && isImpl2)
701
674
expect(error.message).toMatch(/no such module: bogus.*code 1/);
@@ -739,9 +712,7 @@ var mytests = function() {
739
712
740
713
// TESTS with no SQL error handler:
741
714
742
-
it(suiteName+'transaction.executeSql syntax error (command with misspelling) with no SQL error handler',function(done){
743
-
if(isWP8)pending('SKIP for WP(8)');// FUTURE TBD
744
-
715
+
it(suiteName+'transaction.executeSql syntax error (command with misspelling) with no SQL error handler [INCONSISTENT error message formatting on Android (android-database-sqlcipher)]',function(done){
0 commit comments