PreparedStatementCommon::__construct ( Connection $conn, $sql ) |
Create new prepared statement instance.
Reimplemented in MSSQLCallableStatement. |
PreparedStatementCommon::setLimit ( $v ) |
|
PreparedStatementCommon::getLimit ( ) |
|
PreparedStatementCommon::setOffset ( $v ) |
|
PreparedStatementCommon::getOffset ( ) |
|
PreparedStatementCommon::getResultSet ( ) |
|
PreparedStatementCommon::getUpdateCount ( ) |
|
PreparedStatementCommon::getMoreResults ( ) |
Reimplemented in MSSQLCallableStatement. |
PreparedStatementCommon::getConnection ( ) |
|
null PreparedStatementCommon::getResource ( ) |
Statement resources do not exist for emulated prepared statements, so this just returns
Reimplemented in MSSQLCallableStatement. |
PreparedStatementCommon::close ( ) |
Nothing to close for emulated prepared statements. Reimplemented in MSSQLCallableStatement, and OCI8PreparedStatement. |
string PreparedStatementCommon::replaceParams
(
)
[protected]
|
Replaces placeholders with the specified parameter values in the SQL. This is for emulated prepared statements.
|
ResultSet PreparedStatementCommon::executeQuery
(
$p1 = null ,
$fetchmode = null
)
|
Executes the SQL query in this PreparedStatement object and returns the resultset generated by the query. We support two signatures for this method:
Reimplemented in MSSQLCallableStatement, MSSQLPreparedStatement, and OCI8PreparedStatement. |
int PreparedStatementCommon::executeUpdate
(
$params = null
)
|
Executes the SQL INSERT, UPDATE, or DELETE statement in this PreparedStatement object.
Reimplemented in OCI8PreparedStatement. |
string PreparedStatementCommon::escape
(
$
str
)
[protected, pure virtual]
|
Escapes special characters (usu. quotes) using native driver function.
Implemented in MSSQLPreparedStatement, MySQLPreparedStatement, OCI8PreparedStatement, PgSQLPreparedStatement, and SQLitePreparedStatement. |
void PreparedStatementCommon::set ( $paramIndex, $value ) |
A generic set method. You can use this if you don't want to concern yourself with the details. It involves slightly more overhead than the specific settesr, since it grabs the PHP type to determine which method makes most sense.
|
void PreparedStatementCommon::setArray ( $paramIndex, $value ) |
Sets an array. Unless a driver-specific method is used, this means simply serializing the passed parameter and storing it as a string.
Reimplemented in PgSQLPreparedStatement. |
void PreparedStatementCommon::setBoolean ( $paramIndex, $value ) |
Sets a boolean value. Default behavior is true = 1, false = 0.
Reimplemented in PgSQLPreparedStatement. |
PreparedStatementCommon::setBlob ( $paramIndex, $blob ) |
Reimplemented in MSSQLPreparedStatement, OCI8PreparedStatement, PgSQLPreparedStatement, and SQLitePreparedStatement. |
PreparedStatementCommon::setClob ( $paramIndex, $clob ) |
Reimplemented in OCI8PreparedStatement. |
void PreparedStatementCommon::setDate ( $paramIndex, $value ) |
|
void PreparedStatementCommon::setDecimal ( $paramIndex, $value ) |
|
void PreparedStatementCommon::setDouble ( $paramIndex, $value ) |
|
void PreparedStatementCommon::setFloat ( $paramIndex, $value ) |
|
void PreparedStatementCommon::setInt ( $paramIndex, $value ) |
|
PreparedStatementCommon::setInteger ( $paramIndex, $value ) |
Alias for setInt()
|
void PreparedStatementCommon::setNull ( $paramIndex ) |
Reimplemented in MSSQLCallableStatement. |
void PreparedStatementCommon::setString ( $paramIndex, $value ) |
|
void PreparedStatementCommon::setTime ( $paramIndex, $value ) |
|
void PreparedStatementCommon::setTimestamp ( $paramIndex, $value ) |
|
PreparedStatementCommon::$conn [protected]
|
|
PreparedStatementCommon::$limit = 0 [protected]
|
|
PreparedStatementCommon::$offset = 0 [protected]
|
|
PreparedStatementCommon::$sql [protected]
|
|
PreparedStatementCommon::$positions [protected]
|
|
PreparedStatementCommon::$positionsCount [protected]
|
|
PreparedStatementCommon::$boundInVars = array() [protected]
|
|
PreparedStatementCommon::$resultSet [protected]
|
|
PreparedStatementCommon::$updateCount [protected]
|
|
This file is part of the Creole[php5] library.
Copyright © 2004 Hans Lellelid |   |
Creole[php5] CVS
|