Re: [Seed7-users] Seed7 - DB2 Backslash-Test Error
Interpreter and compiler for the Seed7 programming language.
Brought to you by:
thomas_mertes
|
From: Thomas M. <mer...@gm...> - 2025-10-30 13:06:08
|
Hi Zachary, The statement "SELECT '\\\\'" is on purpose. MySQL databases might allow a backslash as escape character in string literals (in a prepared statement). This depends on the setting of a MySQL database. The statement should determine if backslash is an escape character or not. As such it should never trigger a DATABASE_ERROR. If something goes wrong the backslash is obviously not an escape character. I just commited "Introduce doPrepare() and doExecute()" (see: https://github.com/ThomasMertes/seed7/commit/d3a24aaef0179b0031e9cbcb864b5f1bc243a244 ). With this commit the statement "SELECT '\\\\'" is prepared with doPrepare() and executed with doExecute(). These functions do not raise a DATABASE_ERROR if something fails. Please test accessing DB2 again with this FIX and tell me the results. Best regards Thomas |