cordova-sqlite-evmax-build-free 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGES.md
CHANGED
package/SQLitePlugin.coffee.md
CHANGED
|
@@ -23,6 +23,9 @@
|
|
|
23
23
|
|
|
24
24
|
EE_SIZE_LIMIT = 16 * 1024 * 1024
|
|
25
25
|
|
|
26
|
+
REPLACE_BANG_REGEXP = /!/g
|
|
27
|
+
REPLACE_SLASH_REGEXP = /\//g
|
|
28
|
+
|
|
26
29
|
## global(s):
|
|
27
30
|
|
|
28
31
|
# per-db map of locking and queueing
|
|
@@ -456,8 +459,7 @@
|
|
|
456
459
|
t = typeof v
|
|
457
460
|
flatlist.push(
|
|
458
461
|
if v == null || v == undefined then null
|
|
459
|
-
else if t == 'number' then v
|
|
460
|
-
else if t == 'string' then v.replace('!', '!!').replace('/', '!|')
|
|
462
|
+
else if t == 'number' || t == 'string' then v
|
|
461
463
|
else v.toString()
|
|
462
464
|
)
|
|
463
465
|
|
|
@@ -707,7 +709,11 @@
|
|
|
707
709
|
|
|
708
710
|
flatlist = [mydbid, flen]
|
|
709
711
|
|
|
710
|
-
flatlist = flatlist.concat flatBatchExecutesEntries[index]
|
|
712
|
+
flatlist = flatlist.concat flatBatchExecutesEntries[index].map (v) ->
|
|
713
|
+
if typeof v == 'string'
|
|
714
|
+
v.replace(REPLACE_BANG_REGEXP, '!1').replace(REPLACE_SLASH_REGEXP, '!2')
|
|
715
|
+
else
|
|
716
|
+
v
|
|
711
717
|
|
|
712
718
|
flatlist.push 'extra'
|
|
713
719
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cordova-sqlite-evmax-build-free",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "Cordova/PhoneGap sqlite storage - free evmax enterprise version with premium stability and performance improvements including workaround for super-large INSERT transactions & SELECT results on Android (version with external sqlite3 dependencies)",
|
|
5
5
|
"cordova": {
|
|
6
6
|
"id": "cordova-sqlite-evmax-common-free",
|
package/plugin.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
|
|
3
3
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
4
4
|
id="cordova-sqlite-evmax-build-free"
|
|
5
|
-
version="0.0.
|
|
5
|
+
version="0.0.8">
|
|
6
6
|
|
|
7
7
|
<name>Cordova sqlite storage - free evmax common version branch with premium stability performance improvements including workaround for super-large INSERT transactions and SELECT results on Android (with external sqlite3 dependencies)</name>
|
|
8
8
|
|
|
@@ -1880,11 +1880,11 @@ var mytests = function() {
|
|
|
1880
1880
|
var db = openDatabase('SELECT-UPPER-with-slash-ab-bang-cd-TEXT-string-argument.db');
|
|
1881
1881
|
expect(db).toBeDefined();
|
|
1882
1882
|
db.transaction(function(tx) {
|
|
1883
|
-
tx.executeSql('SELECT UPPER(?) as myresult', ['/ab!cd'], function(ignored, rs) {
|
|
1883
|
+
tx.executeSql('SELECT UPPER(?) as myresult', ['/ab!cd!!ef!123/456'], function(ignored, rs) {
|
|
1884
1884
|
expect(rs).toBeDefined();
|
|
1885
1885
|
expect(rs.rows).toBeDefined();
|
|
1886
1886
|
expect(rs.rows.length).toBe(1);
|
|
1887
|
-
expect(rs.rows.item(0).myresult).toBe('/AB!CD');
|
|
1887
|
+
expect(rs.rows.item(0).myresult).toBe('/AB!CD!!EF!123/456');
|
|
1888
1888
|
done();
|
|
1889
1889
|
});
|
|
1890
1890
|
}, function(error) {
|
|
Binary file
|
package/www/SQLitePlugin.js
CHANGED
|
@@ -4,7 +4,7 @@ Contact for commercial license: sales@litehelpers.net
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
(function() {
|
|
7
|
-
var DB_STATE_INIT, DB_STATE_OPEN, EE_SIZE_LIMIT, READ_ONLY_REGEX, SQLiteFactory, SQLitePlugin, SQLitePluginTransaction, SelfTest, argsArray, dblocations, iosLocationMap, newSQLError, nextTick, root, txLocks;
|
|
7
|
+
var DB_STATE_INIT, DB_STATE_OPEN, EE_SIZE_LIMIT, READ_ONLY_REGEX, REPLACE_BANG_REGEXP, REPLACE_SLASH_REGEXP, SQLiteFactory, SQLitePlugin, SQLitePluginTransaction, SelfTest, argsArray, dblocations, iosLocationMap, newSQLError, nextTick, root, txLocks;
|
|
8
8
|
|
|
9
9
|
root = this;
|
|
10
10
|
|
|
@@ -16,6 +16,10 @@ Contact for commercial license: sales@litehelpers.net
|
|
|
16
16
|
|
|
17
17
|
EE_SIZE_LIMIT = 16 * 1024 * 1024;
|
|
18
18
|
|
|
19
|
+
REPLACE_BANG_REGEXP = /!/g;
|
|
20
|
+
|
|
21
|
+
REPLACE_SLASH_REGEXP = /\//g;
|
|
22
|
+
|
|
19
23
|
txLocks = {};
|
|
20
24
|
|
|
21
25
|
newSQLError = function(error, code) {
|
|
@@ -390,7 +394,7 @@ Contact for commercial license: sales@litehelpers.net
|
|
|
390
394
|
for (l = 0, len1 = values.length; l < len1; l++) {
|
|
391
395
|
v = values[l];
|
|
392
396
|
t = typeof v;
|
|
393
|
-
flatlist.push(v === null || v === void 0 ? null : t === 'number'
|
|
397
|
+
flatlist.push(v === null || v === void 0 ? null : t === 'number' || t === 'string' ? v : v.toString());
|
|
394
398
|
}
|
|
395
399
|
} else {
|
|
396
400
|
flatlist.push(0);
|
|
@@ -615,7 +619,13 @@ Contact for commercial license: sales@litehelpers.net
|
|
|
615
619
|
var cb1, ch1, flatlist, flen;
|
|
616
620
|
flen = flatBatchExecutesEntries[index].flen;
|
|
617
621
|
flatlist = [mydbid, flen];
|
|
618
|
-
flatlist = flatlist.concat(flatBatchExecutesEntries[index])
|
|
622
|
+
flatlist = flatlist.concat(flatBatchExecutesEntries[index].map(function(v) {
|
|
623
|
+
if (typeof v === 'string') {
|
|
624
|
+
return v.replace(REPLACE_BANG_REGEXP, '!1').replace(REPLACE_SLASH_REGEXP, '!2');
|
|
625
|
+
} else {
|
|
626
|
+
return v;
|
|
627
|
+
}
|
|
628
|
+
}));
|
|
619
629
|
flatlist.push('extra');
|
|
620
630
|
ch1 = false;
|
|
621
631
|
cb1 = function(result) {
|