From 683b808f27a3d5ae9090aac973b240bbcc02c3bd Mon Sep 17 00:00:00 2001 From: Musa Haidari Date: Mon, 6 Mar 2017 03:10:24 +0430 Subject: [PATCH] docs(sqlite): syntax error resolved (#1142) * Syntax error resolved The `{}` should be `[]`, but since there is no binding we do not get error. In case we add one, then the syntax will be incorrect. * Fixed a syntax error --- src/plugins/sqlite.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/sqlite.ts b/src/plugins/sqlite.ts index ac8a55d30..e4d984d5a 100644 --- a/src/plugins/sqlite.ts +++ b/src/plugins/sqlite.ts @@ -21,7 +21,7 @@ declare var sqlitePlugin; * }) * .then((db: SQLite) => { * - * db.executeSql('create table danceMoves(name VARCHAR(32))', {}).then(() => {}).catch(() => {}); + * db.executeSql('create table danceMoves(name VARCHAR(32))', []).then(() => {}).catch(() => {}); * * }) * .catch(error => console.error('Error opening database', error)); @@ -33,7 +33,7 @@ declare var sqlitePlugin; * name: 'data.db', * location: 'default' // the location field is required * }).then(() => { - * db.executeSql('create table danceMoves(name VARCHAR(32))', {}).then(() => { + * db.executeSql('create table danceMoves(name VARCHAR(32))', []).then(() => { * * }, (err) => { * console.error('Unable to execute sql: ', err);