Subject | Re: CR/LF in SQL |
---|---|
Author | peter_jacobi.rm |
Post date | 2004-06-22T16:04:35Z |
Hi Christian,
Christian Gütter <news@g...> wrote:
directory.
C compiler does the substitution of '\x0d\x0a' to the
two bytes CR/LF. You can't test this in ISQL and you would
need another escaping mechanism in Delphi, I guess.
Regards,
Peter Jacobi
Christian Gütter <news@g...> wrote:
> does this really work for you?Yes, just modify and compile api3.c in the 'examples'
directory.
> When I try the following query with FB 1.5:How are you trying this? It only works in C, as the
>
> SELECT '123' || '\x0d\x0a' || '456' FROM RDB$DATABASE
>
> I get the following result:
>
> 123\x0d\x0a456
>
> So the '\x0d\x0a' ist not treated as CR/LF.
C compiler does the substitution of '\x0d\x0a' to the
two bytes CR/LF. You can't test this in ISQL and you would
need another escaping mechanism in Delphi, I guess.
Regards,
Peter Jacobi