Skip to content
Snippets Groups Projects
Commit cc121690 authored by srosse's avatar srosse
Browse files

OO-2147: missing within keyword for oracle in native queries with listagg (patch J. Underground)

parent d8fe3a1e
No related branches found
No related tags found
No related merge requests found
...@@ -123,7 +123,7 @@ public class NativeQueryBuilder { ...@@ -123,7 +123,7 @@ public class NativeQueryBuilder {
} else if(dbInstance.isPostgreSQL()) { } else if(dbInstance.isPostgreSQL()) {
sb.append(" array_to_string(array_agg(").append(var).append("),',')"); sb.append(" array_to_string(array_agg(").append(var).append("),',')");
} else if(dbInstance.isOracle()) { } else if(dbInstance.isOracle()) {
sb.append(" listagg(").append(var).append(",',')"); sb.append(" listagg(").append(var).append(",',') within group (order by ").append(var).append(") ");
} }
return this; return this;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment