incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [6/8] git commit: CB-482: window.openDatabase on Android doesn't handle the version parameter very well
Date Thu, 19 Apr 2012 22:53:56 GMT
CB-482: window.openDatabase on Android doesn't handle the version parameter very well


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/b2de4baa
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/b2de4baa
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/b2de4baa

Branch: refs/heads/bada
Commit: b2de4baa76a94ecb916619a536339ffee9ef6843
Parents: 4052c44
Author: macdonst <simon.macdonald@gmail.com>
Authored: Thu Apr 12 12:06:39 2012 -0400
Committer: Fil Maj <maj.fil@gmail.com>
Committed: Mon Apr 16 14:31:09 2012 -0700

----------------------------------------------------------------------
 lib/android/platform.js |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/b2de4baa/lib/android/platform.js
----------------------------------------------------------------------
diff --git a/lib/android/platform.js b/lib/android/platform.js
index c2dc309..c393872 100644
--- a/lib/android/platform.js
+++ b/lib/android/platform.js
@@ -70,7 +70,11 @@ module.exports = {
                     db = originalOpenDatabase(name, version, desc, size);
                 } 
                 catch (ex) {
-                    db = null;
+                    if (ex.code === 18) {
+                        db = null;
+                    } else {
+                        throw ex;
+                    }
                 }
 
                 if (db === null) {


Mime
View raw message