Skip to content
Permalink
Browse files

bugfix: incorrect handling of ARRAY[...] expressions

  • Loading branch information...
jgaleotti committed May 9, 2019
1 parent 868bc19 commit 2324cf23aacb5bff1991b487044513739ff72ae3
@@ -63,6 +63,6 @@ private String transformDialect(String originalSqlStr) {
* The JSQL parser does not properly handle the Postgres "ARRAY[...]" construct. Since
* the ARRAY is used within a enumeration, we can simply drop the "ARRAY[...]"
*/
return transformedStr.replaceAll("ARRAY\\s*\\[([^<]*)\\]", "");
return transformedStr.replaceAll("ARRAY\\s*\\[([^<]*)\\]", "$1");
}
}

0 comments on commit 2324cf2

Please sign in to comment.
You can’t perform that action at this time.