You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by mw...@apache.org on 2013/02/20 21:17:25 UTC
[1/2] docs commit: fix example code for storage api
fix example code for storage api
Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/50c53920
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/50c53920
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/50c53920
Branch: refs/heads/master
Commit: 50c53920e76c9740a08aa85eaf43e8676be5d6cc
Parents: 0df12dd
Author: Spencer Oberstadt <so...@gmail.com>
Authored: Wed Feb 20 13:30:58 2013 -0600
Committer: Michael Brooks <mi...@michaelbrooks.ca>
Committed: Wed Feb 20 12:16:41 2013 -0800
----------------------------------------------------------------------
.../cordova/storage/sqlresultset/sqlresultset.md | 16 +++++++-------
1 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/50c53920/docs/en/edge/cordova/storage/sqlresultset/sqlresultset.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/storage/sqlresultset/sqlresultset.md b/docs/en/edge/cordova/storage/sqlresultset/sqlresultset.md
index 77d552a..68562d1 100644
--- a/docs/en/edge/cordova/storage/sqlresultset/sqlresultset.md
+++ b/docs/en/edge/cordova/storage/sqlresultset/sqlresultset.md
@@ -51,14 +51,14 @@ Execute SQL Quick Example
}
function querySuccess(tx, results) {
- console.log("Returned rows = " + results.rows.length);
- // this will be true since it was a select statement and so rowsAffected was 0
- if (!resultSet.rowsAffected) {
- console.log('No rows affected!');
- return false;
- }
- // for an insert statement, this property will return the ID of the last inserted row
- console.log("Last inserted row ID = " + results.insertId);
+ console.log("Returned rows = " + results.rows.length);
+ // this will be true since it was a select statement and so rowsAffected was 0
+ if (!results.rowsAffected) {
+ console.log('No rows affected!');
+ return false;
+ }
+ // for an insert statement, this property will return the ID of the last inserted row
+ console.log("Last inserted row ID = " + results.insertId);
}
function errorCB(err) {