Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Fixed issue #1431: Sqlite Transaction Bug #1432

Open
wants to merge 1 commit into
base: dev-next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions demo/www/lib/ngCordova/dist/ng-cordova.js
Original file line number Diff line number Diff line change
Expand Up @@ -6876,7 +6876,8 @@ angular.module('ngCordova.plugins.sqlite', [])
function (transaction, error) {
q.reject(error);
});
});
}, q.reject);

return q.promise;
},

Expand All @@ -6902,7 +6903,8 @@ angular.module('ngCordova.plugins.sqlite', [])
q.reject(exception);
}
})();
});
}, q.reject);

return q.promise;
},

Expand All @@ -6916,22 +6918,15 @@ angular.module('ngCordova.plugins.sqlite', [])
q.resolve(res);
});
});
},
function (transaction, error) {
q.reject(error);
});
}, q.reject);

return q.promise;
},

deleteDB: function (dbName) {
var q = $q.defer();

$window.sqlitePlugin.deleteDatabase(dbName, function (success) {
q.resolve(success);
}, function (error) {
q.reject(error);
});
$window.sqlitePlugin.deleteDatabase(dbName, q.resolve, q.reject);

return q.promise;
}
Expand Down
2 changes: 1 addition & 1 deletion demo/www/lib/ngCordova/dist/ng-cordova.min.js

Large diffs are not rendered by default.

17 changes: 6 additions & 11 deletions dist/ng-cordova.js
Original file line number Diff line number Diff line change
Expand Up @@ -6876,7 +6876,8 @@ angular.module('ngCordova.plugins.sqlite', [])
function (transaction, error) {
q.reject(error);
});
});
}, q.reject);

return q.promise;
},

Expand All @@ -6902,7 +6903,8 @@ angular.module('ngCordova.plugins.sqlite', [])
q.reject(exception);
}
})();
});
}, q.reject);

return q.promise;
},

Expand All @@ -6916,22 +6918,15 @@ angular.module('ngCordova.plugins.sqlite', [])
q.resolve(res);
});
});
},
function (transaction, error) {
q.reject(error);
});
}, q.reject);

return q.promise;
},

deleteDB: function (dbName) {
var q = $q.defer();

$window.sqlitePlugin.deleteDatabase(dbName, function (success) {
q.resolve(success);
}, function (error) {
q.reject(error);
});
$window.sqlitePlugin.deleteDatabase(dbName, q.resolve, q.reject);

return q.promise;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/ng-cordova.min.js

Large diffs are not rendered by default.

17 changes: 6 additions & 11 deletions src/plugins/sqlite.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ angular.module('ngCordova.plugins.sqlite', [])
function (transaction, error) {
q.reject(error);
});
});
}, q.reject);

return q.promise;
},

Expand All @@ -56,7 +57,8 @@ angular.module('ngCordova.plugins.sqlite', [])
q.reject(exception);
}
})();
});
}, q.reject);

return q.promise;
},

Expand All @@ -70,22 +72,15 @@ angular.module('ngCordova.plugins.sqlite', [])
q.resolve(res);
});
});
},
function (transaction, error) {
q.reject(error);
});
}, q.reject);

return q.promise;
},

deleteDB: function (dbName) {
var q = $q.defer();

$window.sqlitePlugin.deleteDatabase(dbName, function (success) {
q.resolve(success);
}, function (error) {
q.reject(error);
});
$window.sqlitePlugin.deleteDatabase(dbName, q.resolve, q.reject);

return q.promise;
}
Expand Down