Did this article resolve your question/issue?



ORACLE database returns errors due to extra characters in the SQL query generated by the DataServer


TitleORACLE database returns errors due to extra characters in the SQL query generated by the DataServer
URL NameORACLE-database-returns-errors-due-to-extra-characters-in-the-SQL-query-generated-by-the-DataServer
Article Number000186576
EnvironmentProduct: OpenEdge
Version: 11.3.3
OS: Windows
Other: DataServer
Question/Problem Description
ORACLE database returns errors due to extra characters in the SQL query generated by the DataServer.

Example of query generated by the DataServer with extra set of paranthesis:

FROM <foreign owner>.<table> T0 LEFT OUTER JOIN <foreign owner>.<table> T1 
ON (T1.U##<table> = T0.U##<table>) 
WHERE ((T0.U##<table> = upper(:1)()))

Steps to Reproduce
Clarifying Information
Error MessageORACLE error -3001 see "ORACLE Error Messages and Codes Manual". (1252)
ORACLE error -907 see "ORACLE Error Messages and Codes Manual". (1252)
-- ** missing right parenthesis
Defect/Enhancement NumberDefect PSC00341428
This is a defect in the SQL query translation made by the DataServer.
Upgrade to OpenEdge 11.5.1 or later where this issue has been corrected.
Utilize the parameter -nojoinbysqldb or the statement QUERY-TUNING(NO-JOIN-BY-SQLDB) in the application logic to specify that the client evaluate and performs queries that have joins

For example,

At startup:       

            $DLC/bin/_progres -nojoinbysqldb (This must be specified during compilation and at run-time in case of dynamic queries)

In ABL( This will disable server side sorting on a query by query basis):

            FOR EACH customer, EACH order OF customer QUERY-TUNING(NO-JOIN-BY-SQLDB):

Note: This will disable the performance improvements made to the DataServer on 11.x.
Last Modified Date10/15/2015 8:34 PM
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.