mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
fix(sqlstorage): empty array not ..params. Fixes #770
This commit is contained in:
@ -96,7 +96,7 @@ export class SqlStorage extends StorageEngine {
|
|||||||
* @param {array} params the additional params to use for query placeholders
|
* @param {array} params the additional params to use for query placeholders
|
||||||
* @return {Promise} that resolves or rejects with an object of the form { tx: Transaction, res: Result (or err)}
|
* @return {Promise} that resolves or rejects with an object of the form { tx: Transaction, res: Result (or err)}
|
||||||
*/
|
*/
|
||||||
query(query, ...params) {
|
query(query, params=[]) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
try {
|
try {
|
||||||
this._db.transaction((tx) => {
|
this._db.transaction((tx) => {
|
||||||
|
Reference in New Issue
Block a user