diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-28 15:08:56 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-28 15:08:56 +0200 |
commit | 91c962e4615101e14be4c720fc386878ddb598a4 (patch) | |
tree | 9c62ace7ee457f9e7c1edd9c89a5b6fba274d363 /odb/mssql/mssql.hxx | |
parent | 8823eb1c28f6589068a080a68283a8ddb47cb71b (diff) |
Implement statements; add support for tracing
Diffstat (limited to 'odb/mssql/mssql.hxx')
-rw-r--r-- | odb/mssql/mssql.hxx | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/odb/mssql/mssql.hxx b/odb/mssql/mssql.hxx index 80cff65..8c455ba 100644 --- a/odb/mssql/mssql.hxx +++ b/odb/mssql/mssql.hxx @@ -24,7 +24,37 @@ #include <sqlext.h> // Standard ODBC. //#define _SQLNCLI_ODBC_ -//#include <sqlncli.h> // SQL Server native client driver specifics. +//#include <sqlncli.h> // SQL Server Native Client driver specifics. + +// Instead of having a dependency on <sqlncli.h> (which, BTW, is not +// currently available for the Linux version of the Native Client), +// we are going to provide the few definitions that we need ourselves. +// +#ifndef SQL_SS_LENGTH_UNLIMITED +# define SQL_SS_LENGTH_UNLIMITED 0 +#endif + +#ifndef SQL_COPT_SS_BASE +# define SQL_COPT_SS_BASE 1200 +#endif + +#ifndef SQL_COPT_SS_MARS_ENABLED +# define SQL_COPT_SS_MARS_ENABLED (SQL_COPT_SS_BASE + 24) +#endif + +#ifndef SQL_MARS_ENABLED_NO +# define SQL_MARS_ENABLED_NO 0L +# define SQL_MARS_ENABLED_YES 1L +#endif + +// unixODBC doesn't define SQL_PARAM_DATA_AVAILABLE even though it +// claims ODBC version 3.80. +// +#if ODBCVER >= 0x0380 +# ifndef SQL_PARAM_DATA_AVAILABLE +# define SQL_PARAM_DATA_AVAILABLE 101 +# endif +#endif #include <odb/post.hxx> |