(55f46569f3e9688c2a07973923bfda68aa2b0c3e)
#include "qsql_db2_p.h"
#include <qcoreapplication.h>
#include <qdatetime.h>
#include <qlist.h>
#include <qsqlerror.h>
#include <qsqlfield.h>
#include <qsqlindex.h>
#include <qsqlrecord.h>
#include <qstringlist.h>
#include <qvarlengtharray.h>
#include <QDebug>
#include <QtSql/private/qsqldriver_p.h>
#include <QtSql/private/qsqlresult_p.h>
#include "private/qtools_p.h"
#include <sqlcli1.h>
#include <string.h>
#include "moc_qsql_db2_p.cpp"
Go to the source code of this file.
|
static QString | qFromTChar (SQLTCHAR *str) |
static SQLTCHAR * | qToTChar (const QString &str) |
static QString | qWarnDB2Handle (int handleType, SQLHANDLE handle, int *errorCode) |
static QString | qDB2Warn (const QDB2DriverPrivate *d, QStringList *errorCodes=nullptr) |
static QString | qDB2Warn (const QDB2ResultPrivate *d, QStringList *errorCodes=nullptr) |
template<typename T> |
static void | qSqlWarning (const QString &message, const T *d) |
template<typename T> |
static QSqlError | qMakeError (const QString &err, QSqlError::ErrorType type, const T *p) |
static QMetaType | qDecodeDB2Type (SQLSMALLINT sqltype) |
static QSqlField | qMakeFieldInfo (const QDB2ResultPrivate *d, int i) |
static int | qGetIntData (SQLHANDLE hStmt, int column, bool &isNull) |
static double | qGetDoubleData (SQLHANDLE hStmt, int column, bool &isNull) |
static SQLBIGINT | qGetBigIntData (SQLHANDLE hStmt, int column, bool &isNull) |
static QString | qGetStringData (SQLHANDLE hStmt, int column, int colSize, bool &isNull) |
static QByteArray | qGetBinaryData (SQLHANDLE hStmt, int column, SQLLEN &lengthIndicator, bool &isNull) |
static QSqlField | qMakeFieldInfo (const SQLHANDLE hStmt) |
static bool | qMakeStatement (QDB2ResultPrivate *d, bool forwardOnly, bool setForwardOnly=true) |
|
static const int | COLNAMESIZE = 255 |
static const SQLSMALLINT | TABLENAMESIZE = 128 |
static const SQLSMALLINT | qParamType [4] = { SQL_PARAM_INPUT, SQL_PARAM_INPUT, SQL_PARAM_OUTPUT, SQL_PARAM_INPUT_OUTPUT } |
◆ qDB2Warn() [1/2]
◆ qDB2Warn() [2/2]
◆ qDecodeDB2Type()
QMetaType qDecodeDB2Type |
( |
SQLSMALLINT | sqltype | ) |
|
|
static |
◆ qFromTChar()
QString qFromTChar |
( |
SQLTCHAR * | str | ) |
|
|
static |
◆ qGetBigIntData()
SQLBIGINT qGetBigIntData |
( |
SQLHANDLE | hStmt, |
|
|
int | column, |
|
|
bool & | isNull ) |
|
static |
◆ qGetBinaryData()
QByteArray qGetBinaryData |
( |
SQLHANDLE | hStmt, |
|
|
int | column, |
|
|
SQLLEN & | lengthIndicator, |
|
|
bool & | isNull ) |
|
static |
◆ qGetDoubleData()
double qGetDoubleData |
( |
SQLHANDLE | hStmt, |
|
|
int | column, |
|
|
bool & | isNull ) |
|
static |
◆ qGetIntData()
int qGetIntData |
( |
SQLHANDLE | hStmt, |
|
|
int | column, |
|
|
bool & | isNull ) |
|
static |
◆ qGetStringData()
QString qGetStringData |
( |
SQLHANDLE | hStmt, |
|
|
int | column, |
|
|
int | colSize, |
|
|
bool & | isNull ) |
|
static |
◆ qMakeError()
◆ qMakeFieldInfo() [1/2]
◆ qMakeFieldInfo() [2/2]
QSqlField qMakeFieldInfo |
( |
const SQLHANDLE | hStmt | ) |
|
|
static |
◆ qMakeStatement()
bool qMakeStatement |
( |
QDB2ResultPrivate * | d, |
|
|
bool | forwardOnly, |
|
|
bool | setForwardOnly = true ) |
|
static |
◆ qSqlWarning()
template<typename T>
void qSqlWarning |
( |
const QString & | message, |
|
|
const T * | d ) |
|
static |
◆ qToTChar()
SQLTCHAR * qToTChar |
( |
const QString & | str | ) |
|
|
static |
◆ qWarnDB2Handle()
QString qWarnDB2Handle |
( |
int | handleType, |
|
|
SQLHANDLE | handle, |
|
|
int * | errorCode ) |
|
static |
◆ COLNAMESIZE
const int COLNAMESIZE = 255 |
|
static |
◆ qParamType
const SQLSMALLINT qParamType = { SQL_PARAM_INPUT, SQL_PARAM_INPUT, SQL_PARAM_OUTPUT, SQL_PARAM_INPUT_OUTPUT } |
|
static |
◆ TABLENAMESIZE
const SQLSMALLINT TABLENAMESIZE = 128 |
|
static |