Update postgres

This commit is contained in:
Anatoliy Chakkaev 2012-08-13 10:27:18 +04:00
parent 134799763c
commit a54961923d
2 changed files with 3 additions and 3 deletions

View File

@ -60,9 +60,9 @@ AbstractClass.prototype._initProperties = function (data, applySetters) {
))
});
if (properties[attr].type.name === 'JSON' && typeof this[_attr] === 'string') {
if (properties[attr].type.name === 'JSON' && this[_attr]) {
try {
this[_attr] = JSON.parse(this[_attr]);
this[_attr] = JSON.parse(this[_attr] + '');
} catch (e) { }
}

View File

@ -35,7 +35,7 @@
"redis": ">= 0.6.7",
"mongoose": ">= 2.2.3",
"mysql": ">= 0.9.4",
"pg": ">= 0.6.9",
"pg": "latest",
"sqlite3": ">= 2.0.18",
"riak-js": ">= 0.4.1",
"neo4j": ">= 0.2.5",