Feedback
Did this article resolve your question/issue?

   

Article

The return code for SQLTables() -> SQLFetch() calls is different when the table name is in uppercase and lowercase

Information

 
TitleThe return code for SQLTables() -> SQLFetch() calls is different when the table name is in uppercase and lowercase
URL Namethe-return-code-for-sqltables-sqlfetch-calls-is-different-when-the-table-name-is-in-uppercase-and-lowercase
Article Number000118515
EnvironmentProduct : Progress DataDirect for ODBC for Oracle Wire Protocol Driver
Version : 8.0.2
OS : Linux
Database : Oracle 12cR2 pluggable database with default character set AL32UTF8
Application : All supported application
Question/Problem Description
When SQLTables() is called with a non-existing table name in lower case, like "userdn",  and then SQLFetch() is called, the return code was SQL_NO_DATA_FOUND.
When the same sequence is called with the table name in uppercase, like "USERDN", the return code was SQL_SUCCESS instead of SQL_NO_DATA_FOUND.


 
Steps to ReproduceFrom the ODBC Test tool, connect to Oracle 12cR2 database.
Then from "Catalog" option, call "SQLTables".
Provide a table name in lowercase which does not exist in the database, like "userdn".
Then from "Results" option, call the function "SQLFetch".
Check the return code which was SQL_NO_DATA_FOUND.

Follow the same above steps by providing the same table name in uppercase "USERDN" .
Check the return code which was SQL_SUCCESS.
Clarifying Information
Error Message
Defect Number
Enhancement Number
Cause
The return codes were correct as the table "USERDN" exists in the database and the table "userdn" does not exist in the database.
Resolution

The driver is working as designed. The return codes were correct.
Workaround
Notes
Last Modified Date1/31/2020 8:15 PM
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.