MDB2 |
![]() |
[ class tree: MDB2 ] [ index: MDB2 ] [ all elements ] |
![]() |
Packages: MDB2 Classes:
MDB2_BufferedResult_mysqli
Files:MDB2_Driver_Datatype_mysqli MDB2_Driver_Function_mysqli MDB2_Driver_Manager_mysqli MDB2_Driver_mysqli MDB2_Driver_Native_mysqli MDB2_Driver_Reverse_mysqli MDB2_Result_mysqli MDB2_Statement_mysqli |
[ Top ] $server_capabilities_checked = false[line 91]
[ Top ] $sql_comments = array(
|
Type: | mixed |
[line 93]
Type: | mixed |
[line 60]
Type: | mixed |
[line 95]
Type: | mixed |
[line 77]
The ouptut of mysqli_errno() in _doQuery(), if any.Type: | integer |
[line 83]
The ouptut of mysqli_error() in _doQuery(), if any.Type: | string |
|
string | $savepoint | — | name of a savepoint to set |
|
string | $savepoint | — | name of a savepoint to release |
|
string | $seq_name | — | name of the sequence |
|
string | $name | — | name of the database that should be checked |
|
boolean | $force | — | if the disconnect should be forced even if the connection is opened persistently |
|
integer | $error | — |
|
string | $text | — | the input string to quote |
bool | $escape_wildcards | — | escape wildcards |
|
bool | $native | — | determines if the raw version string should be returned |
|
string | $table | — | name of the table into which a new row was inserted |
string | $field | — | name of the field into which a new row was inserted |
|
string | $seq_name | — | name of the sequence |
boolean | $ondemand | — | when true the sequence is automatic created, if it not exists |
|
With some database backends, this is emulated. prepare() requires a generic query as string like 'INSERT INTO numbers VALUES(?,?)' or 'INSERT INTO numbers VALUES(:foo,:bar)'. The ? and :name and are placeholders which can be set using bindParam() and the query can be sent off using the execute() method. The allowed format for :name can be set with the 'bindname_format' option.
string | $query | — | the query to prepare |
mixed | $types | — | array that contains the types of the placeholders |
mixed | $result_types | — | array that contains the types of the columns in the result set or MDB2_PREPARE_RESULT, if set to MDB2_PREPARE_MANIP the query is handled as a manipulation query |
mixed | $lobs | — | key (field) value (parameter) pair for all lob placeholders |
|
The REPLACE type of query does not make part of the SQL standards. Since practically only MySQL implements it natively, this type of query is emulated through this method for other DBMS using standard types of queries inside a transaction to assure the atomicity of the operation.
string | $table | — | name of the table on which the REPLACE query will be executed. |
array | $fields | — | associative array that describes the fields and the values that will be inserted or updated in the specified table. The indexes of the array are the names of all the fields of the table. The values of the array are also associative arrays that describe the values and other properties of the table fields. Here follows a list of field properties that need to be specified: value: Value to be assigned to the specified field. This value may be of specified in database independent type format as this function can perform the necessary datatype conversions. Default: this property is required unless the Null property is set to 1. type Name of the type of the field. Currently, all types Metabase are supported except for clob and blob. Default: no type conversion null Boolean property that indicates that the value for this field should be set to null. The default value for fields missing in INSERT queries may be specified the definition of a table. Often, the default value is already null, but since the REPLACE may be emulated using an UPDATE query, make sure that all fields of the table are listed in this function argument array. Default: 0 key Boolean property that indicates that this field should be handled as a primary key or at least as part of the compound unique index of the table that will determine the row that will updated if it exists or inserted a new row otherwise. This function will fail if no key field is specified or if the value of a key field is set to null because fields that are part of unique index they may not be null. Default: 0 |
|
string | $savepoint | — | name of a savepoint to rollback to |
|
string | $charset | — | charset (or array(charset, collation)) |
resource | $connection | — | connection handle |
|
string | $option | — | option name |
mixed | $value | — | value for the option |
|
string | $isolation | — | standard isolation level READ UNCOMMITTED (allows dirty reads) READ COMMITTED (prevents dirty reads) REPEATABLE READ (prevents nonrepeatable reads) SERIALIZABLE (prevents phantom reads) |
array | $options | — | some transaction options: 'wait' => 'WAIT' | 'NO WAIT' 'rw' => 'READ WRITE' | 'READ ONLY' |
|
string | $query | — | the SQL query |
mixed | $types | — | array that contains the types of the columns in the result set |
boolean | $is_manip | — | if the query is a manipulation query |
|
$username | — | ||
$password | — | ||
$persistent | — |
|
string | $query | — | query |
boolean | $is_manip | — | if the query is a manipulation query |
resource | $connection | — | |
string | $database_name | — |
|
string | $query | — | query to modify |
boolean | $is_manip | — | if it is a DML query |
integer | $limit | — | limit the number of rows |
integer | $offset | — | start reading from given offset |
|
Check if the placeholder is a false positive, i.e. if it is an user defined variable instead. If so, skip it and advance the position, otherwise return the current position, which is valid
string | $query | — | |
integer | $position | — | current string cursor position |