Skip to content

Commit

Permalink
fixing #181
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed Jul 12, 2016
1 parent f5b0cfe commit 281ca5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/helpers/columnSet.js
Expand Up @@ -212,12 +212,12 @@ function ColumnSet(columns, options) {
}

Object.freeze(this.columns);

// ColumnSet is simple when the source objects require no preparation,
// and should be used directly:
for (var i = 0; i < this.columns.length; i++) {
var c = this.columns[i];
if (c.prop || c.def || c.init) {
if (c.prop || c.init || 'def' in c) {
isSimple = false;
break;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "pg-promise",
"version": "5.1.2",
"version": "5.1.3",
"description": "Promises interface for PostgreSQL",
"main": "lib/index.js",
"scripts": {
Expand Down

0 comments on commit 281ca5c

Please sign in to comment.