#include <odbc++/statement.h>
Class diagram for odbc::Statement:

virtual odbc::Statement::~Statement () [virtual]
|
Destructor.
Destroys/closes this statement as well as all created resultsets.
virtual bool odbc::Statement::execute (const std::string & sql) [virtual]
|
Execute a given SQL statement.
The statement can return multiple results. To get to the next result after processing the first one, getMoreResults() should be called.
| sql | The string to execute |
virtual ResultSet * odbc::Statement::executeQuery (const std::string & sql) [virtual]
|
Execute an SQL statement, expected to return a resultset.
| sql | The string to execute |
virtual int odbc::Statement::executeUpdate (const std::string & sql) [virtual]
|
Execute an SQL statement, expected to return an update count.
| int odbc::Statement::getUpdateCount () |
Fetch the current result as an update count.
-1 if the result is a ResultSet or if there are no more results. | bool odbc::Statement::getMoreResults () |
Check if there are more results available on this statment.
| void odbc::Statement::setEscapeProcessing (bool on) |
Sets escape processing on or off.
For PreparedStatements, the command has been parsed on creation, so this setting won't really have any effect.
| bool odbc::Statement::getEscapeProcessing () |
Gets the current escape processing setting.
true if escape processing is on, false otherwise