From c118786cead354b1e90b7773722c3e475414443f Mon Sep 17 00:00:00 2001 From: Sam Taylor Date: Sun, 9 Sep 2012 17:00:46 +0100 Subject: [PATCH] fix global leak in postgres adapter --- lib/adapters/postgres.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/adapters/postgres.js b/lib/adapters/postgres.js index f1269329..8f713558 100644 --- a/lib/adapters/postgres.js +++ b/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; };