MSSQL error when there is a dot in the query statement.
OK:
SELECT "standard_parts".* FROM "standard_parts" WHERE "standard_parts"."number" ILIKE '%b%' LIMIT $1 OFFSET $2
ERROR:
SELECT "standard_parts".* FROM "standard_parts" WHERE "standard_parts"."number" ILIKE '%b\.%' LIMIT $1 OFFSET $2
Error message:
(PG::FdwUnableToCreateExecution: 错误: DB-Library error: DB #: 20018, DB Msg: General SQL Server error: Check messages from the SQL Server, OS #: -1, OS Msg: , Level: 15
: SELECT "standard_parts".* FROM "standard_parts" WHERE "standard_parts"."number" ILIKE '%b\.%' LIMIT $1 OFFSET $2)
---------+------+------------+------------------------------
plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language
Built the package from Git:
commit 012350f68cea6159d1667b30d939afed05399e4a HEAD (HEAD -> master, origin/master, origin/HEAD)
Author: RAFAELDEV2016 <rafael.dev2016@gmail.com>
Date: Fri Nov 27 21:44:34 2020 +0100
Version of PostgreSQL
version
---------------------------------------------------------------------------------------
PostgreSQL 10.15 on x86_64-suse-linux-gnu, compiled by gcc (SUSE Linux) 7.5.0, 64-bit
2021-01-10 11:19:03.182 CST parts_management_production [4901]语句: SELECT "standard_parts".* FROM "standard_parts" WHERE "standard_parts"."standard_info" ILIKE '%GB 879\.2%' LIMIT $1 OFFSET $2
2021-01-10 11:19:11.089 CST parts_management_production [4921]警告: Table definition mismatch: Foreign source has column named , but target table does not. Column will be ignored.
2021-01-10 11:19:31.969 CST parts_management_production [4921]错误: DB-Library error: DB #: 20018, DB Msg: General SQL Server error: Check messages from the SQL Server, OS #: -1, OS Msg: , Level: 15
Issue report
MSSQL error when there is a dot in the query statement.
OK:
ERROR:
Error message:
Operating system
Version of tds_fdw
Built the package from Git:
Version of PostgreSQL
Version of FreeTDS
Logs
Postgresql log:
Sentences, data structures, data