Feedback
Did this article resolve your question/issue?

   

Article

Convert function with three arguments fails with OpenAccess SDK in SQL Passthrough mode.

Information

 
TitleConvert function with three arguments fails with OpenAccess SDK in SQL Passthrough mode.
URL NameErrorusingCONVERTfunction
Article Number000162297
EnvironmentProduct: Openaccess SDK
Version: 7.0, 8.0, 8.1
OS: All supported platforms
Database: All supported databases
Application: All supported applications
Question/Problem Description
Business Objects generates a query with an unsupported syntax of CONVERT
CONVERT(data_type(length), expression, style)

While using the OpenAccess SDK in SQL Passthrough mode the the validation of CONVERT function with three arguments fails.

 
Steps to ReproduceSetup OpenAccess SDK in SQL Pass Through mode and execute the below query

SELECT * FROM emp WHERE ( convert (datetime, convert (varchar, hiredate, 101), 101) IN ({d '2018-09-10' }) )
Clarifying Information
Error Messagemessage:[42000][OpenAccess SDK SQL Engine]Invalid syntax used with scalar function:CONVERT. Function expects 2 arguments.[10149]
Defect NumberDefect OASL-215
Enhancement Number
Cause
OpenAccess SDK Server fails to validate the CONVERT function with three arguments. 
Resolution
Fixed in hot fix 8.1.0.0076

Refer to OpenAccess SDK hot fix download and install instructions for instructions on how to download and install the hot fix.

Fixed the OpenAccess SDK not to validate the Scalar function in pass through mode and allow the IP to do the execution.
Workaround
Notes
References to other documentation:
Progress Article(s): 
 How to use passthrough mode against JDBC databases using OpenAccess SDK 8.1 for Java
Last Modified Date11/20/2020 7:02 AM
Files
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.