public class MysqliStatement extends JdbcPreparedStatementResource
| Modifier and Type | Method and Description |
|---|---|
int |
affected_rows(Env env)
Returns the total number of rows changed, deleted,
or inserted by the last executed statement.
|
boolean |
bind_param(Env env,
StringValue typeStr,
Value[] params)
Binds variables to a prepared statement as parameters.
|
boolean |
bind_result(Env env,
Value[] outParams)
Binds variables to a prepared statement for result storage.
|
boolean |
close()
Closes a prepared statement.
|
protected JdbcResultResource |
createResultSet(java.sql.ResultSet rs) |
Value |
data_seek(Env env,
int offset)
Seeks to an arbitrary row in statement result set.
|
int |
errno()
Returns the error code for the most recent statement call.
|
StringValue |
error(Env env)
Returns a string description for last statement error
|
boolean |
execute(Env env) |
Value |
fetch(Env env)
Fetch results from a prepared statement into the bound variables.
|
int |
field_count(Env env)
Returns the number of columns in the last query.
|
void |
free_result(Env env)
Frees the associated result.
|
JdbcResultResource |
get_result(Env env)
Returns the MysqliResult
|
int |
getaffected_rows(Env env)
Quercus function to get the field 'affected_rows'.
|
int |
geterrno()
Quercus function to get the field 'errno'.
|
StringValue |
geterror(Env env)
Quercus function to get the field 'error'.
|
int |
getfield_count(Env env)
Quercus function to get the field 'field_count'.
|
Value |
getinsert_id(Env env)
Quercus function to get the field 'insert_id'.
|
Value |
getnum_rows(Env env)
Quercus function to get the field 'num_rows'.
|
int |
getparam_count(Env env)
Quercus function to get the field 'param_count'.
|
StringValue |
getsqlstate(Env env)
Quercus function to get the field 'sqlstate'.
|
Value |
insert_id(Env env) |
Value |
num_rows(Env env)
Returns the number of rows in the result.
|
int |
param_count(Env env)
Returns the number of parameter markers for this statement.
|
boolean |
prepare(Env env,
java.lang.String query)
Prepare a SQL statement for execution.
|
boolean |
reset(Env env)
Resets the statement.
|
MysqliResult |
result_metadata(Env env)
mysqli_stmt_result_metadata seems to be some initial
step towards getting metadata from a resultset created
by a SELECT run by a prepared statement.
|
boolean |
send_long_data(Env env,
int paramNumber,
java.lang.String data)
Send data in blocks.
|
StringValue |
sqlstate(Env env)
Returns SQLSTATE error from previous statement operation.
|
boolean |
store_result(Env env)
Saves the result as buffered.
|
bindParams, executeImpl, getParam, getParamLength, getPreparedStatement, isPreparable, paramCount, prepareForExecute, setObject, setPreparedStatementbindResults, dataSeek, execute, freeResult, getColumnCount, getConnection, getErrorCode, getErrorMessage, getException, getFieldCount, getJavaConnection, getMetaData, getNumRows, getQuery, getResultSet, getStatementType, isFetchFieldIndexBeforeFieldName, lastInsertId, setError, setErrorCode, setErrorMessage, setQuery, setResultSet, setStatement, toStringpublic boolean execute(Env env)
execute in class JdbcStatementResourcepublic int getaffected_rows(Env env)
public int affected_rows(Env env)
env - the PHP executing environmentpublic boolean bind_param(Env env, StringValue typeStr, Value[] params)
env - the PHP executing environmenttypes - string of i,d,s,b (ie: "idds")params - array of values (probably Vars)public boolean bind_result(Env env, Value[] outParams)
env - the PHP executing environmentoutParams - the output variablespublic boolean close()
close in class JdbcStatementResourceenv - the PHP executing environmentpublic Value data_seek(Env env, int offset)
env - the PHP executing environmentoffset - row offsetpublic int errno()
env - the PHP executing environmentpublic int geterrno()
public StringValue error(Env env)
env - the PHP executing environmentpublic StringValue geterror(Env env)
public Value fetch(Env env)
fetch in class JdbcStatementResourceenv - the PHP executing environmentpublic void free_result(Env env)
env - the PHP executing environmentpublic JdbcResultResource get_result(Env env)
protected JdbcResultResource createResultSet(java.sql.ResultSet rs)
createResultSet in class JdbcStatementResourcepublic Value num_rows(Env env)
env - the PHP executing environmentpublic int getparam_count(Env env)
public int param_count(Env env)
env - the PHP executing environmentpublic boolean prepare(Env env, java.lang.String query)
prepare in class JdbcPreparedStatementResourceenv - the PHP executing environmentquery - SQL querypublic boolean reset(Env env)
env - the PHP executing environmentpublic MysqliResult result_metadata(Env env)
env - the PHP executing environmentpublic boolean send_long_data(Env env, int paramNumber, java.lang.String data)
env - the PHP executing environmentparamNumber - indicates which parameter to associate the data withdata - the data to be sentpublic StringValue getsqlstate(Env env)
public StringValue sqlstate(Env env)
env - the PHP executing environmentpublic boolean store_result(Env env)
env - the PHP executing environmentpublic int getfield_count(Env env)
public int field_count(Env env)