Postgres: backslashes and escaping

From: Date: Mon, 18 Dec 2006 16:36:59 +0000
Subject: Postgres: backslashes and escaping
Groups: php.db 
Request: Send a blank email to php-db+get-42826@lists.php.net to get a copy of this message
Recent versions of Postgres (8.1 and up I believe) include a config parameter called standard_conforming_strings. If this option is enabled then backslashes don't need to be doubled in Postgres queries. I am wondering if the PHP function pg_escape_string() is aware of this option? In other words, will this function continue to double the backslashes even if it is not appropriate for the existing Postgres connection as configured? And how about pg_query_params()? -- Thank you, Lewis Kapell Computer Operations Seton Home Study School

« previous php.db (#42826) next »