Here's a patch which makes PQescapeString stop escaping when \0 is seen.
Currently. if somebody passes a string with embedded \0 (for example, perl
allows \0s in it's scalars and DBD::Pg does no checks), PQescapeString will
return an invalid (bigger) length for \0-terminated string.
pgsql-interfaces by date
|Next:||From: Tom Lane||Date: 2003-09-29 18:22:01|
|Subject: Re: PQescapeString handling of \0 |
|Previous:||From: alexander riachtchenko||Date: 2003-09-29 02:29:10|