Re: [Sqlrelay-discussion] FreeTDS bind incorrectly escaping strings
Brought to you by:
mused
|
From: Michael A. <mi...@mi...> - 2008-03-26 14:11:30
|
David Muse wrote:
> Hey Michael,
>
> Wow, I had no idea that MS SQL Server didn't use backslashes!
>
> A quick fix, assuming that you're not using SQL Relay with any db other
> then SQL Server, would be to edit src/connection/sqlrcursor/fakebinds.C
> around line 119 and change:
>
> if (ch=='\'' || ch=='\\') {
> buffer->append('\\');
>
> to:
> if (ch=='\'') {
> buffer->append('\'');
>
> Then rebuild/reinstall.
>
Thanks David, made the change and tested, can confirm that this fixes
the string escaping problem.
Cheers,
--Michael
|