com.caucho.quercus.lib.db
Class PostgresStatement

java.lang.Object
  extended by com.caucho.quercus.lib.db.JdbcStatementResource
      extended by com.caucho.quercus.lib.db.PostgresStatement

public class PostgresStatement
extends JdbcStatementResource

Postgres statement class. Since Postgres has no object oriented API, this is essentially a JdbcStatementResource.


Method Summary
 boolean execute(Env env)
          Executes a prepared Postgres Query.
protected  int getPreparedMappingSize()
           
 boolean prepare(Env env, StringValue query)
          Prepares this statement with the given query.
 
Methods inherited from class com.caucho.quercus.lib.db.JdbcStatementResource
bindParams, bindResults, close, dataSeek, errorCode, errorMessage, executeStatement, fetch, freeResult, getFieldCount, getJavaConnection, getMetaData, getNumRows, getParam, getParamLength, getPreparedStatement, getResultMetadata, getResultSet, getStatementType, paramCount, prepareStatement, setObject, setPreparedStatement, setResultSet, toString, validateConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

execute

public boolean execute(Env env)
Executes a prepared Postgres Query.

Overrides:
execute in class JdbcStatementResource
Parameters:
env - the PHP executing environment
Returns:
true on success or false on failure

prepare

public boolean prepare(Env env,
                       StringValue query)
Prepares this statement with the given query.

Overrides:
prepare in class JdbcStatementResource
Parameters:
query - SQL query
Returns:
true on success or false on failure

getPreparedMappingSize

protected int getPreparedMappingSize()