|
|
|
@ -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 TQSQLLEN SQLLEN
|
|
|
|
|
#else
|
|
|
|
|
# define TQSQLLEN SQLINTEGER
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef SQLULEN
|
|
|
|
|
#if defined(SQLULEN) || defined(Q_OS_WIN64) || defined(Q_OS_UNIX)
|
|
|
|
|
# define TQSQLULEN SQLULEN
|
|
|
|
|
#else
|
|
|
|
|
# define TQSQLULEN SQLUINTEGER
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static const TQSQLLEN COLNAMESIZE = 256;
|
|
|
|
|
//Map TQt parameter types to ODBC types
|
|
|
|
|
static const SQLSMALLINT qParamType[ 4 ] = { SQL_PARAM_INPUT, SQL_PARAM_INPUT, SQL_PARAM_OUTPUT, SQL_PARAM_INPUT_OUTPUT };
|
|
|
|
|