Compile fix for DB2 sqldriver plugin

Change-Id: Ib91ffaa0f1f240b9d93e1756cf309a9975f09928
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
Andy Shaw 2016-06-29 12:46:45 +02:00 committed by Andy Shaw
parent 28628a5d5e
commit a6a08095a4

View File

@ -59,8 +59,6 @@
#define SQL_BIGUINT_TYPE quint64
#endif
#define UNICODE
#include <sqlcli1.h>
#include <string.h>
@ -1187,8 +1185,8 @@ QDB2Driver::QDB2Driver(Qt::HANDLE env, Qt::HANDLE con, QObject* parent)
: QSqlDriver(*new QDB2DriverPrivate, parent)
{
Q_D(QDB2Driver);
d->hEnv = reinterpret_cast<intptr_t>(env);
d->hDbc = reinterpret_cast<intptr_t>(con);
d->hEnv = reinterpret_cast<SQLHANDLE>(env);
d->hDbc = reinterpret_cast<SQLHANDLE>(con);
if (env && con) {
setOpen(true);
setOpenError(false);