Hello!
I'm facing an issue with 1C:Enterprise 8.3 (Linux) trying to connect to an external SAP HANA DB (version 2.00.042.00) via ODBC.
Sympthoms:
In the 1C Designer, the required tables from the SAPABAP1 schema are not visible at all, and the few visible from other schemas show no columns.
Creating the table and columns manually in 1C does not resolve the error.
In the 1C Tech Log (techlog, events EDS/EXCP), the generated SQL queries look perfectly fine.
BUT: In the ODBC trace log (odbc_trace.log), the query is truncated to a single [S] character, followed by SQLSTATE 42000, error 257: syntax error near "S".
isql utility successfully connects via the same DSN, lists tables/columns, and runs any query.
The DSN (/etc/odbc.ini), encoding, and system locale (UTF-8) are all set up correctly. Tech Logs show 1C attempts to send a correct SQL query, but it gets corrupted into a single [S] in the ODBC traces.
My Hypothesis:
The 1C platform, when working with an external source, first tries to retrieve metadata (table columns) by calling the ODBC function SQLColumns. In our specific SAP HANA version (2.00.042), the standard system views (SYS.COLUMNS, PUBLIC.COLUMNS) are either missing or inaccessible to the user. Because 1C fails to obtain the table structure, it cannot form a correct final SQL query, and the driver ends up receiving only the first letter of the command (SELECT -> S), leading to the syntax error.
The success of isql supports this, as it does not make such a preliminary SQLColumns call to display the structure.
Has anyone encountered this and knows a solution? Any help would be greatly appreciated.