Merge pull request #117 from sjltaylor/fix_global_leak

fix global leak in postgres adapter
This commit is contained in:
Anatoliy Chakkaev 2012-09-09 09:05:12 -07:00
commit 71c6651402
1 changed files with 1 additions and 1 deletions

View File

@ -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;
};