Skip to content

Commit b818ec8

Browse files
committed
Space added to a column value on saving fixes on Android
1 parent 5f20249 commit b818ec8

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

demo-angular/src/app/home/home.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class HomeComponent implements OnInit {
3535
addText() {
3636
let id = this.db.insert(databaseTables.PERSONS, {
3737
name: this.text,
38-
n: {No:"po' si"},
38+
n: { No: "po' si" },
3939
i: 1 * ++this.updateCounter
4040
});
4141
this.text = '';

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-sqlite-access",
3-
"version": "1.0.8",
3+
"version": "1.0.81",
44
"description": "NativeScript plugin to access and manage sqlite data on Android & iOS",
55
"main": "sqlite-access",
66
"typings": "index.d.ts",

src/sqlite-access.android.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/sqlite-access.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ function __mapToContentValues(values: { [key: string]: any; }) {
303303
contentValues.putNull(key);
304304
continue;
305305
}
306-
contentValues.put(key, value.toString().replace(/''/g, "'").replace(/^'|'$/g,' '));
306+
contentValues.put(key, value.toString().replace(/''/g, "'").replace(/^'|'$/g, ''));
307307
}
308308
}
309309
return contentValues;

src/sqlite-access.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ function __processCursor(cursorRef: any, returnType: ReturnType, reduceOrMapSub?
242242
dbValue = reduceOrMapSub.callback(dbValue, counter++);
243243
}
244244
(<Array<any>>result).push( dbValue );
245-
// Condiction on the while fixes issue #8
245+
// Condition on the while fixes issue #8
246246
} while (sqlite3_step(cursorRef) === 100 /*SQLITE_ROW*/);
247247
}
248248

0 commit comments

Comments
 (0)