Skip to content

Commit

Permalink
fixed update() queries
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierlacot committed Feb 18, 2011
1 parent 0e0f25b commit 1460067
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions joli.js
Expand Up @@ -151,7 +151,7 @@ joli.Connection = function(database) {

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

Expand Down Expand Up @@ -428,7 +428,7 @@ joli.query.prototype = {

return 'select ' + this.data.select_columns + ' from ' + this.data.from + join;
case 'update':
return 'update ' + this.data.from + ' set ' + this.data.values.join(', ');
return 'update ' + this.data.from + ' set ' + this.data.set.join(', ');
default:
throw("Operation type Error. joli.query operation type must be an insert, a delete, a select or an update.");
}
Expand Down

0 comments on commit 1460067

Please sign in to comment.