Skip to content

Commit

Permalink
updated the log() method calls the Titanium 1.5 API + made getCount()…
Browse files Browse the repository at this point in the history
… more solid
  • Loading branch information
xavierlacot committed Jan 17, 2011
1 parent 03aecd3 commit fbb623a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions joli.js
Expand Up @@ -151,7 +151,7 @@ joli.Connection = function(database) {

joli.Connection.prototype = {
execute: function(query) {
// Titanium.API.log(query);
// Titanium.API.log('debug', query);
return this.database.execute(query);
},

Expand Down Expand Up @@ -395,6 +395,10 @@ joli.query.prototype = {
getCount: function(rows) {
var result;

if (null == rows) {
return 0;
}

if (0 == rows.rowCount) {
result = 0;
} else {
Expand Down Expand Up @@ -455,7 +459,7 @@ joli.query.prototype = {
return result;
}

//Titanium.API.log('hydrating ' + rows.rowCount + ' rows.');
//Titanium.API.log('debug', 'hydrating ' + rows.rowCount + ' rows.');
var i;
var rowData;

Expand Down

0 comments on commit fbb623a

Please sign in to comment.