Open jef-sure opened 2 years ago
I can't tell what the fix would be, but this is indeed a real bug.
I can reproduce this issue by adding a backslash to our varchar
test:
It fails when running SELECT * FROM postgresql14_ubuntu2004_test.varchar WHERE value = 'this is a string with a \ backslash';
Issue report
Backslashes in queries
Operating system
Version of tds_fdw
Version of PostgreSQL
Version of FreeTDS
Sentences, data structures, data
tsqldbo."AD_USERS" is a table from Microsoft SQL Server Standard (64-bit) 13.0.4522.0,
DistinguishedName
is a column from this table. When I try to select a row from the table and my query value contains backslash, I get error. The only suspicious code I found is from deparse.c: