Skip to content

Commit

Permalink
docs(sqlite): syntax error resolved (#1142)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
musahaidari authored and ihadeed committed Mar 5, 2017
1 parent f11be16 commit 683b808
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/sqlite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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);
Expand Down

0 comments on commit 683b808

Please sign in to comment.