Qt 4.8
|
#include "qsql_oci.h"
#include <qcoreapplication.h>
#include <qvariant.h>
#include <qdatetime.h>
#include <qmetatype.h>
#include <qregexp.h>
#include <qshareddata.h>
#include <qsqlerror.h>
#include <qsqlfield.h>
#include <qsqlindex.h>
#include <qsqlquery.h>
#include <qstringlist.h>
#include <qvarlengtharray.h>
#include <qvector.h>
#include <qdebug.h>
#include <oci.h>
#include <stdlib.h>
Go to the source code of this file.
Classes | |
struct | OraFieldInfo |
struct | QOCIBatchCleanupHandler |
struct | QOCIBatchColumn |
class | QOCICols |
class | QOCICols::OraFieldInf |
struct | QOCIDriverPrivate |
struct | QOCIResultPrivate |
class | QOCIRowId |
Macros | |
#define | QOCI_DYNAMIC_CHUNK_SIZE 65535 |
#define | QOCI_PREFETCH_MEM 10240 |
#define | QOCI_THREADED |
Typedefs | |
typedef QVarLengthArray< sb2, 32 > | IndicatorArray |
typedef QSharedDataPointer< QOCIRowId > | QOCIRowIdPointer |
typedef QVarLengthArray< ub2, 32 > | SizeArray |
Enumerations | |
enum | { QOCIEncoding = 2002 } |
Functions | |
QVariant::Type | qDecodeOCIType (const QString &ocitype, QSql::NumericalPrecisionPolicy precisionPolicy) |
QVariant::Type | qDecodeOCIType (int ocitype, QSql::NumericalPrecisionPolicy precisionPolicy) |
static QSqlField | qFromOraInf (const OraFieldInfo &ofi) |
static QDateTime | qMakeDate (const char *oraDate) |
static QSqlError | qMakeError (const QString &errString, QSqlError::ErrorType type, OCIError *err) |
static qlonglong | qMakeLongLong (const char *ociNumber, OCIError *err) |
static QByteArray | qMakeOCINumber (const qlonglong &ll, OCIError *err) |
Convert qlonglong to the internal Oracle OCINumber format. More... | |
static QByteArray | qMakeOCINumber (const qulonglong &ull, OCIError *err) |
Convert qulonglong to the internal Oracle OCINumber format. More... | |
static QByteArray | qMakeOraDate (const QDateTime &dt) |
Convert QDateTime to the internal Oracle DATE format NB! It does not handle BCE dates. More... | |
static qulonglong | qMakeULongLong (const char *ociNumber, OCIError *err) |
static int | qOraErrorNumber (OCIError *err) |
static void | qOraOutValue (QVariant &value, QList< QByteArray > &storage, OCIError *err) |
static QString | qOraWarn (OCIError *err, int *errorCode=0) |
static void | qOraWarning (const char *msg, OCIError *err) |
static void | qParseOpts (const QString &options, QOCIDriverPrivate *d) |
template<class T , int sz> | |
int | qReadLob (T &buf, const QOCIResultPrivate *d, OCILobLocator *lob) |
void | qSplitTableAndOwner (const QString &tname, QString *tbl, QString *owner) |
Variables | |
static const ub2 | qOraCharset = OCI_UCS2ID |
#define QOCI_DYNAMIC_CHUNK_SIZE 65535 |
Definition at line 75 of file qsql_oci.cpp.
Referenced by QOCICols::readPiecewise().
#define QOCI_PREFETCH_MEM 10240 |
Definition at line 76 of file qsql_oci.cpp.
#define QOCI_THREADED |
Definition at line 81 of file qsql_oci.cpp.
typedef QVarLengthArray<sb2, 32> IndicatorArray |
Definition at line 110 of file qsql_oci.cpp.
typedef QSharedDataPointer<QOCIRowId> QOCIRowIdPointer |
Definition at line 157 of file qsql_oci.cpp.
typedef QVarLengthArray<ub2, 32> SizeArray |
Definition at line 111 of file qsql_oci.cpp.
anonymous enum |
QVariant::Type qDecodeOCIType | ( | const QString & | ocitype, |
QSql::NumericalPrecisionPolicy | precisionPolicy | ||
) |
Definition at line 561 of file qsql_oci.cpp.
Referenced by QOCIDriver::primaryIndex(), QOCICols::qMakeOraField(), and QOCIDriver::record().
QVariant::Type qDecodeOCIType | ( | int | ocitype, |
QSql::NumericalPrecisionPolicy | precisionPolicy | ||
) |
Definition at line 605 of file qsql_oci.cpp.
|
static |
Definition at line 678 of file qsql_oci.cpp.
Referenced by QOCICols::QOCICols().
|
static |
Definition at line 773 of file qsql_oci.cpp.
Referenced by QOCICols::execBatch(), QOCICols::getValues(), and qOraOutValue().
|
static |
Definition at line 554 of file qsql_oci.cpp.
Referenced by QOCIDriver::beginTransaction(), QOCIDriver::commitTransaction(), QOCIResult::exec(), QOCICols::execBatch(), QOCIResult::gotoNext(), QOCIDriver::open(), QOCIResult::prepare(), QOCIDriver::QOCIDriver(), and QOCIDriver::rollbackTransaction().
|
static |
Definition at line 757 of file qsql_oci.cpp.
Referenced by QOCICols::execBatch(), and qOraOutValue().
|
static |
Convert qlonglong to the internal Oracle OCINumber format.
Definition at line 725 of file qsql_oci.cpp.
Referenced by QOCIResultPrivate::bindValue(), and QOCICols::execBatch().
|
static |
Convert qulonglong to the internal Oracle OCINumber format.
Definition at line 745 of file qsql_oci.cpp.
|
static |
Convert QDateTime to the internal Oracle DATE format NB! It does not handle BCE dates.
Definition at line 702 of file qsql_oci.cpp.
Referenced by QOCIResultPrivate::bindValue(), and QOCICols::execBatch().
|
static |
Definition at line 765 of file qsql_oci.cpp.
Referenced by QOCICols::execBatch(), and qOraOutValue().
|
static |
Definition at line 541 of file qsql_oci.cpp.
Referenced by QOCIResult::gotoNext().
|
static |
Definition at line 419 of file qsql_oci.cpp.
Referenced by QOCICols::execBatch(), and QOCIResultPrivate::outValues().
|
static |
|
static |
Definition at line 531 of file qsql_oci.cpp.
Referenced by QOCIDriver::beginTransaction(), QOCIResultPrivate::bindValue(), QOCIDriver::commitTransaction(), QOCIResult::exec(), QOCICols::execBatch(), QOCIResult::gotoNext(), QOCIResult::prepare(), QOCICols::qMakeOraField(), QOCICols::QOCICols(), qReadLob(), QOCICols::readPiecewise(), QOCIDriver::rollbackTransaction(), QOCIResultPrivate::setCharset(), and QOCIResultPrivate::setStatementAttributes().
|
static |
Definition at line 2151 of file qsql_oci.cpp.
Referenced by QOCIDriver::open().
int qReadLob | ( | T & | buf, |
const QOCIResultPrivate * | d, | ||
OCILobLocator * | lob | ||
) |
Definition at line 1630 of file qsql_oci.cpp.
Definition at line 2444 of file qsql_oci.cpp.
Referenced by QOCIDriver::primaryIndex(), and QOCIDriver::record().
|
static |
Definition at line 107 of file qsql_oci.cpp.
Referenced by QOCIResultPrivate::setCharset().