Re: cvs: php-src /ext/pdo pdo_stmt.c

From: Date: Fri, 08 Jul 2005 02:31:43 +0000
Subject: Re: cvs: php-src /ext/pdo pdo_stmt.c
References: 1 2 3  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-32792@lists.php.net to get a copy of this message
Pointing me at some good documentation for it would help; I find the postgres site really difficult to extract information from. I've looked on two occasions but got fed up with lack of info.
Interesting. I find the PostgreSQL manual elegant, simple and orthogonal and I find the MySQL one a total cross-version jumbled mess :) This is the URL you want: http://www.postgresql.org/docs/8.0/interactive/libpq-exec.html#LIBPQ-EXEC-MAIN You can use the PQprepare/PQexecPrepared combo to have separated prepare and execute steps. Or, you can use PQexecParams to simple execute a statement with separate parameters.
If you can show me some C code that does it, I'll install postgres and hack up something to make it work.
Just look at php-src/ext/pgsql/pgsql.c. Find the pg_prepare, pg_execute and pg_query_params function implementations. The basic thing in PostgreSQL is that it uses positional parameters: $1, $2, $3 instead of ?, ?, ? or :var1, :var2, :var3. Chris

« previous php.cvs (#32792) next »