Re: [PATCH] pg_escape_literal/pg_escape_identifier for pgsql

From: Date: Tue, 24 May 2011 05:03:45 +0000
Subject: Re: [PATCH] pg_escape_literal/pg_escape_identifier for pgsql
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-52511@lists.php.net to get a copy of this message
2011/5/24 Yasuo Ohgaki <yohgaki@ohgaki.net>: >> Should we really provide fallback if PQescape(Literal|Identifier) >> isn't available? Did you copy the escaping from postgresql directly? > > Wouldn't it nice to have the same escaping capability for 8.x? > It's not possible to copy the code, since it's binded to PostgreSQL's > multibyte function. It's possible to use mbstring function for thatbut it's > not default. I forgot to mention. It may seems to strange way to escape strings, (i.e. ' E' prefix) but all currently supported PostgreSQL versions accept this escape. -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#52511) next »