Fixes bug 27745: Add Payment fails using Oracle versions: 11.1 y 10
authorEduardo Argal Guibert <eduardo.argal@openbravo.com>
Fri, 03 Oct 2014 16:26:24 +0200
changeset 24075 e33eb7ed352a
parent 24074 f192265ffb04
child 24076 541489ec5169
Fixes bug 27745: Add Payment fails using Oracle versions: 11.1 y 10

Adds missing parenthesis in declaration of function which was root cause of wrong query parsing
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/APRMApplicationInitializer.java
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/APRMApplicationInitializer.java	Thu Sep 25 12:17:25 2014 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/APRMApplicationInitializer.java	Fri Oct 03 16:26:24 2014 +0200
@@ -50,9 +50,9 @@
       if (is11R2orNewer()) {
         return "listagg(to_char(?1), ',') WITHIN GROUP (ORDER BY ?1)";
       } else if (existsStrAgg()) {
-        return "stragg(to_char(?1)";
+        return "stragg(to_char(?1))";
       } else {
-        return "wm_concat(to_char(?1)";
+        return "wm_concat(to_char(?1))";
       }
     } else {
       return "array_to_string(array_agg(?1), ',')";