Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Update lib/databases/postgresql.js #82

Merged
merged 1 commit into from

2 participants

@Gamaroff

Removing brackets which cause query to fail

@Gamaroff Gamaroff Update lib/databases/postgresql.js
Removing brackets which cause query to fail
111163b
@dresende dresende merged commit 3294bfa into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 22, 2012
  1. @Gamaroff

    Update lib/databases/postgresql.js

    Gamaroff authored
    Removing brackets which cause query to fail
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/databases/postgresql.js
View
2  lib/databases/postgresql.js
@@ -147,7 +147,7 @@ DBClient.prototype.selectRecords = function (collection, config) {
if (config.rel && config.rel.length) {
for (var i = 0; i < config.rel.length; i++) {
- query_tables = "(" + query_tables + ") JOIN " +
+ query_tables = query_tables + " JOIN " +
this._escapeId(config.rel[i].collection) + " t" + (i + 1) +
" ON " + this._escapeId("t" + i + "." + config.rel[i].rel[0]) +
" = " + this._escapeId("t" + (i + 1) + "." + config.rel[i].rel[1]);
Something went wrong with that request. Please try again.