Permalink
Browse files

fix: first composite query not calling getNativeSql() (#1020)

  • Loading branch information...
jorsol authored and vlsi committed Nov 24, 2017
1 parent 8a30044 commit 2cae5a199c2d08768ea9f784ee3f60cef244c4b0
Showing with 1 addition and 1 deletion.
  1. +1 −1 pgjdbc/src/main/java/org/postgresql/core/v3/CompositeQuery.java
@@ -44,7 +44,7 @@ public String toString(ParameterList parameters) {
@Override
public String getNativeSql() {
StringBuilder sbuf = new StringBuilder(subqueries[0].toString());
StringBuilder sbuf = new StringBuilder(subqueries[0].getNativeSql());
for (int i = 1; i < subqueries.length; ++i) {
sbuf.append(';');
sbuf.append(subqueries[i].getNativeSql());

0 comments on commit 2cae5a1

Please sign in to comment.