Permalink
Browse files

Merge pull request #117 from sjltaylor/fix_global_leak

fix global leak in postgres adapter
  • Loading branch information...
2 parents dee112a + c118786 commit 71c6651402aeb64293929b33f7a01ed2267cacea @1602 committed Sep 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/adapters/postgres.js
View
@@ -354,7 +354,7 @@ function getColumnsToAdd(model, actualFields){
function addPropertyToActual(model, propName){
var self = this;
var p = self._models[model].properties[propName];
- sqlCommand = 'ADD COLUMN "' + propName + '" ' + datatype(p) + " " + (propertyCanBeNull.call(self, model, propName) ? "" : " NOT NULL");
+ var sqlCommand = 'ADD COLUMN "' + propName + '" ' + datatype(p) + " " + (propertyCanBeNull.call(self, model, propName) ? "" : " NOT NULL");
return sqlCommand;
};

0 comments on commit 71c6651

Please sign in to comment.