Re: pdo and dabase schema

From: Date: Wed, 15 Oct 2008 06:15:23 +0000
Subject: Re: pdo and dabase schema
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-281936@lists.php.net to get a copy of this message
Alain Roger wrote:
Hi, is there a way with PDO class to not have: - to execute a simple SET search_path TO myschema;
can you alter the postgres users path? alter user <username> set search_path to new_schema, current_schemas(); or some variation on that.
- and after to fletch another SQL request, like select to be sure that the SQL statement will be perform on this schema ? (basically i want to do it in 1 step)
You can't. After you connect you have to change the schema. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#281936) next »