--- sql/odbc/parser3odbc.C 2002/05/15 14:06:07 1.9 +++ sql/odbc/parser3odbc.C 2002/10/22 10:12:46 1.10 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char *RCSId="$Id: parser3odbc.C,v 1.9 2002/05/15 14:06:07 paf Exp $"; +static const char *RCSId="$Id: parser3odbc.C,v 1.10 2002/10/22 10:12:46 paf Exp $"; #ifndef _MSC_VER # error compile ISAPI module with MSVC [no urge for now to make it autoconf-ed (PAF)] @@ -20,10 +20,14 @@ static const char *RCSId="$Id: parser3od #include +// defines + +#define MAX_COLS 500 + #define MAX_STRING 0x400 #define MAX_NUMBER 40 -// MSSQL2000 +// new in MSSQL2000, no MFC constants #ifndef SQL_NVARCHAR #define SQL_NVARCHAR (-9) #endif @@ -184,10 +188,15 @@ public: if(!column_count) services._throw("result contains no columns"); + SWORD column_types[MAX_COLS]; + if(column_count>MAX_COLS) + column_count=MAX_COLS; + for(int i=0; i=offset) { handlers.add_row(); - for(int i=0; i