Use unixODBC instead of obsolete iODBC

This closes Bug 792
Thanks to 'L0ner' for the patch!
pull/2/head
Timothy Pearson 12 years ago
parent 7295893a20
commit e20b434308

@ -17,7 +17,7 @@ mac {
unix {
OBJECTS_DIR = .obj
!contains( LIBS, .*odbc.* ) {
LIBS *= -liodbc
LIBS *= -lodbc
}
}

@ -61,19 +61,18 @@
#endif
// newer platform SDKs use SQLLEN instead of SQLINTEGER
#ifdef SQLLEN
#if defined(SQLLEN) || defined(Q_OS_WIN64) || defined(Q_OS_UNIX)
# define QSQLLEN SQLLEN
#else
# define QSQLLEN SQLINTEGER
#endif
#ifdef SQLULEN
#if defined(SQLULEN) || defined(Q_OS_WIN64) || defined(Q_OS_UNIX)
# define QSQLULEN SQLULEN
#else
# define QSQLULEN SQLUINTEGER
#endif
static const QSQLLEN COLNAMESIZE = 256;
//Map Qt parameter types to ODBC types
static const SQLSMALLINT qParamType[ 4 ] = { SQL_PARAM_INPUT, SQL_PARAM_INPUT, SQL_PARAM_OUTPUT, SQL_PARAM_INPUT_OUTPUT };

@ -110,13 +110,13 @@ sql {
mac {
!contains( LIBS, .*odbc.* ) {
LIBS *= -liodbc
LIBS *= -lodbc
}
}
unix {
!contains( LIBS, .*odbc.* ) {
LIBS *= -liodbc
LIBS *= -lodbc
}
}

Loading…
Cancel
Save