Proxy class to wrap a PDOStatement object for IBM Databases.
Matches the interface of PDOStatement. All methods simply proxy to the matching method in PDOStatement. PDOExceptions thrown by PDOStatement are re-thrown as Zend_Db_Statement_Exception.
category | Zend |
---|---|
package | Zend_Db |
subpackage | Statement |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_Db_Statement_Pdo |
__construct(\Zend_Db_Adapter_Abstract $adapter, mixed $sql)
\Zend_Db_Adapter_Abstract
mixed
Either a string or Zend_Db_Select.
_execute(array $params = null
) : boolean
array
OPTIONAL Values to bind to parameter placeholders.
\Zend_Db_Statement_Exception |
---|
boolean
_fetchBound(array $row) : boolean
array
boolean
TruebindColumn(string $column, mixed $param, mixed $type = null
) : boolean
inherited_from | \Zend_Db_Statement_Interface::bindColumn() |
---|
string
Name the column in the result set, either by position or by name.
mixed
Reference to the PHP variable containing the value.
mixed
OPTIONAL
boolean
bindParam(mixed $parameter, mixed $variable, mixed $type= null
, mixed $length= null
, mixed $options= null
) : boolean
inherited_from | \Zend_Db_Statement_Interface::bindParam() |
---|
mixed
Name the parameter, either integer or string.
mixed
Reference to PHP variable containing the value.
mixed
OPTIONAL Datatype of SQL parameter.
mixed
OPTIONAL Length of SQL parameter.
mixed
OPTIONAL Other options.
boolean
bindValue(mixed $parameter, mixed $value, mixed $type = null
) : boolean
inherited_from | \Zend_Db_Statement_Interface::bindValue() |
---|
mixed
Name the parameter, either integer or string.
mixed
Scalar value to bind to the parameter.
mixed
OPTIONAL Datatype of the parameter.
boolean
closeCursor() : boolean
\Zend_Db_Statement_Exception |
---|
boolean
columnCount() : integer
Returns null if the statement has no result set metadata.
\Zend_Db_Statement_Exception |
---|
integer
The number of columns.errorCode() : string
\Zend_Db_Statement_Exception |
---|
string
error code.errorInfo() : array
\Zend_Db_Statement_Exception |
---|
array
execute(array $params = null
) : boolean
inherited_from | \Zend_Db_Statement_Interface::execute() |
---|
array
OPTIONAL Values to bind to parameter placeholders.
boolean
fetch(integer $style= null
, integer $cursor= null
, integer $offset= null
) : mixed
inherited_from | \Zend_Db_Statement_Pdo::fetch() |
---|
integer
OPTIONAL Fetch mode for this fetch operation.
integer
OPTIONAL Absolute, relative, or other.
integer
OPTIONAL Number for absolute or relative cursors.
\Zend_Db_Statement_Exception |
---|
mixed
Array, object, or scalar depending on fetch mode.fetch(integer $style= null
, integer $cursor= null
, integer $offset= null
) : mixed
integer
OPTIONAL Fetch mode for this fetch operation.
integer
OPTIONAL Absolute, relative, or other.
integer
OPTIONAL Number for absolute or relative cursors.
\Zend_Db_Statement_Exception |
---|
mixed
Array, object, or scalar depending on fetch mode.fetchAll(integer $style= null
, integer $col= null
) : array
Behaves like parent, but if limit() is used, the final result removes the extra column 'zend_db_rownum'
inherited_from | \Zend_Db_Statement_Pdo::fetchAll() |
---|
integer
OPTIONAL Fetch mode.
integer
OPTIONAL Column number, if fetch mode is by column.
\Zend_Db_Statement_Exception |
---|
array
Collection of rows, each in a format by the fetch mode.fetchAll(integer $style= null
, integer $col= null
) : array
inherited_from | \Zend_Db_Statement_Interface::fetchAll() |
---|
integer
OPTIONAL Fetch mode.
integer
OPTIONAL Column number, if fetch mode is by column.
array
Collection of rows, each in a format by the fetch mode.fetchColumn(integer $col = 0
) : string
inherited_from | \Zend_Db_Statement_Interface::fetchColumn() |
---|
integer
OPTIONAL Position of the column to fetch.
string
One value from the next row of result set, or false.fetchObject(string $class= 'stdClass'
, array $config= array()
) : mixed
inherited_from | \Zend_Db_Statement_Interface::fetchObject() |
---|
string
OPTIONAL Name of the class to create.
array
OPTIONAL Constructor arguments for the class.
mixed
One object instance of the specified class, or false.getAdapter() : \Zend_Db_Adapter_Abstract
\Zend_Db_Adapter_Abstract
getAttribute(string $key) : mixed
inherited_from | \Zend_Db_Statement_Interface::getAttribute() |
---|
string
Attribute name.
mixed
Attribute value.getColumnMeta(integer $column) : mixed
integer
\Zend_Db_Statement_Exception |
---|
mixed
getDriverStatement() : \unknown_type
\unknown_type
getIterator() : \IteratorIterator
\IteratorIterator
nextRowset() : boolean
\Zend_Db_Statement_Exception |
---|
boolean
rowCount() : integer
\Zend_Db_Statement_Exception |
---|
integer
The number of rows affected.setAttribute(string $key, mixed $val) : boolean
inherited_from | \Zend_Db_Statement_Interface::setAttribute() |
---|
string
Attribute name.
mixed
Attribute value.
boolean
setFetchMode(integer $mode) : boolean
inherited_from | \Zend_Db_Statement_Interface::setFetchMode() |
---|
integer
The fetch mode.
\Zend_Db_Statement_Exception |
---|
boolean
_bindParam(mixed $parameter, mixed $variable, mixed $type= null
, mixed $length= null
, mixed $options= null
) : boolean
mixed
Name the parameter, either integer or string.
mixed
Reference to PHP variable containing the value.
mixed
OPTIONAL Datatype of SQL parameter.
mixed
OPTIONAL Length of SQL parameter.
mixed
OPTIONAL Other options.
\Zend_Db_Statement_Exception |
---|
boolean
_parseParameters(string $sql) : void
string
_prepare($sql) : void
_stripQuoted(string $sql) : string
string
string
$_adapter : \Zend_Db_Adapter_Abstract
null
$_attribute : array
array()
$_bindColumn : array
array()
$_bindParam : array
array()
$_fetchMode : integer
\Zend_Db::FETCH_ASSOC
$_queryId : \Zend_Db_Profiler_Query
null
$_sqlParam : array
array()
$_sqlSplit : array
array()
$_stmt : resource | object
null