Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix global leak in postgres adapter

  • Loading branch information...
commit c118786cead354b1e90b7773722c3e475414443f 1 parent dee112a
@sjltaylor sjltaylor authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/adapters/postgres.js
View
2  lib/adapters/postgres.js
@@ -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;
};
Please sign in to comment.
Something went wrong with that request. Please try again.