fix global leak in postgres adapter

This commit is contained in:
Sam Taylor 2012-09-09 17:00:46 +01:00
parent dee112a35c
commit c118786cea
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ function getColumnsToAdd(model, actualFields){
function addPropertyToActual(model, propName){ function addPropertyToActual(model, propName){
var self = this; var self = this;
var p = self._models[model].properties[propName]; 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; return sqlCommand;
}; };