Qt 4.8
|
#include "qsql_odbc.h"
#include <qsqlrecord.h>
#include <qcoreapplication.h>
#include <qvariant.h>
#include <qdatetime.h>
#include <qsqlerror.h>
#include <qsqlfield.h>
#include <qsqlindex.h>
#include <qstringlist.h>
#include <qvarlengtharray.h>
#include <qvector.h>
#include <qmath.h>
#include <QDebug>
#include <QSqlQuery>
Go to the source code of this file.
Classes | |
class | QODBCDriverPrivate |
class | QODBCPrivate |
Macros | |
#define | ODBC_CHECK_DRIVER |
Functions | |
static QString | fromSQLTCHAR (const QVarLengthArray< SQLTCHAR > &input, int size=-1) |
template<class T > | |
static QVariant::Type | qDecodeODBCType (SQLSMALLINT sqltype, const T *p, bool isSigned=true) |
static QVariant | qGetBigIntData (SQLHANDLE hStmt, int column, bool isSigned=true) |
static QVariant | qGetBinaryData (SQLHANDLE hStmt, int column) |
static QVariant | qGetDoubleData (SQLHANDLE hStmt, int column) |
static QVariant | qGetIntData (SQLHANDLE hStmt, int column, bool isSigned=true) |
static int | qGetODBCVersion (const QString &connOpts) |
static QString | qGetStringData (SQLHANDLE hStmt, int column, int colSize, bool unicode=false) |
static QSqlError | qMakeError (const QString &err, QSqlError::ErrorType type, const QODBCPrivate *p) |
static QSqlError | qMakeError (const QString &err, QSqlError::ErrorType type, const QODBCDriverPrivate *p) |
static QSqlField | qMakeFieldInfo (const SQLHANDLE hStmt, const QODBCDriverPrivate *p) |
static QSqlField | qMakeFieldInfo (const QODBCPrivate *p, int i) |
static QString | qODBCWarn (const QODBCPrivate *odbc, int *nativeCode=0) |
static QString | qODBCWarn (const QODBCDriverPrivate *odbc, int *nativeCode=0) |
static void | qSqlWarning (const QString &message, const QODBCPrivate *odbc) |
static void | qSqlWarning (const QString &message, const QODBCDriverPrivate *odbc) |
static QString | qWarnODBCHandle (int handleType, SQLHANDLE handle, int *nativeCode=0) |
static QVarLengthArray< SQLTCHAR > | toSQLTCHAR (const QString &input) |
Variables | |
static const int | COLNAMESIZE = 256 |
static const SQLSMALLINT | qParamType [4] = { SQL_PARAM_INPUT, SQL_PARAM_INPUT, SQL_PARAM_OUTPUT, SQL_PARAM_INPUT_OUTPUT } |
#define ODBC_CHECK_DRIVER |
Definition at line 64 of file qsql_odbc.cpp.
|
inlinestatic |
Definition at line 70 of file qsql_odbc.cpp.
Referenced by QODBCDriver::cleanup(), QODBCResult::exec(), qGetStringData(), qMakeFieldInfo(), and qWarnODBCHandle().
|
static |
Definition at line 293 of file qsql_odbc.cpp.
Referenced by qMakeFieldInfo().
|
static |
Definition at line 551 of file qsql_odbc.cpp.
Referenced by QODBCResult::data().
|
static |
Definition at line 454 of file qsql_odbc.cpp.
Referenced by QODBCResult::data().
|
static |
Definition at line 531 of file qsql_odbc.cpp.
Referenced by QODBCResult::data().
|
static |
Definition at line 511 of file qsql_odbc.cpp.
Referenced by QODBCResult::data(), and qMakeFieldInfo().
|
static |
Definition at line 655 of file qsql_odbc.cpp.
Referenced by QODBCDriver::open().
|
static |
Definition at line 353 of file qsql_odbc.cpp.
Referenced by QODBCResult::data(), QODBCDriver::primaryIndex(), qMakeFieldInfo(), and QODBCDriver::tables().
|
static |
Definition at line 277 of file qsql_odbc.cpp.
Referenced by QODBCDriver::beginTransaction(), QODBCDriver::commitTransaction(), QODBCDriver::endTrans(), QODBCResult::exec(), QODBCResult::fetch(), QODBCResult::fetchFirst(), QODBCResult::fetchLast(), QODBCResult::fetchNext(), QODBCResult::fetchPrevious(), QODBCResult::nextResult(), QODBCDriver::open(), QODBCResult::prepare(), QODBCResult::reset(), and QODBCDriver::rollbackTransaction().
|
static |
Definition at line 284 of file qsql_odbc.cpp.
|
static |
Definition at line 574 of file qsql_odbc.cpp.
Referenced by QODBCResult::exec(), QODBCResult::nextResult(), QODBCDriver::record(), and QODBCResult::reset().
|
static |
Definition at line 594 of file qsql_odbc.cpp.
|
static |
Definition at line 254 of file qsql_odbc.cpp.
Referenced by QODBCResult::exec(), QODBCResult::nextResult(), qMakeError(), and qSqlWarning().
|
static |
Definition at line 261 of file qsql_odbc.cpp.
|
static |
Definition at line 267 of file qsql_odbc.cpp.
Referenced by QODBCDriver::cleanup(), QODBCResult::exec(), QODBCResult::numRowsAffected(), QODBCDriver::open(), QODBCResult::prepare(), QODBCDriver::primaryIndex(), qGetODBCVersion(), qMakeFieldInfo(), QODBCDriver::record(), QODBCResult::reset(), QODBCDriver::tables(), and QODBCResult::~QODBCResult().
|
static |
Definition at line 272 of file qsql_odbc.cpp.
|
static |
Definition at line 202 of file qsql_odbc.cpp.
Referenced by qGetStringData(), qODBCWarn(), and QODBCDriver::tables().
|
inlinestatic |
Definition at line 93 of file qsql_odbc.cpp.
Referenced by QODBCDriver::cleanup(), QODBCResult::exec(), QODBCDriver::open(), QODBCResult::prepare(), QODBCDriver::primaryIndex(), qGetODBCVersion(), QODBCDriver::record(), QODBCResult::reset(), and QODBCDriver::tables().
|
static |
Definition at line 66 of file qsql_odbc.cpp.
Referenced by qGetBinaryData(), and qMakeFieldInfo().
|
static |
Definition at line 68 of file qsql_odbc.cpp.
Referenced by QODBCResult::exec().