--- sql/odbc/parser3odbc.C 2002/10/29 10:17:41 1.11 +++ sql/odbc/parser3odbc.C 2003/01/21 15:51:29 1.13 @@ -1,11 +1,11 @@ /** @file Parser ODBC driver. - Copyright(c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Copyright(c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char *RCSId="$Id: parser3odbc.C,v 1.11 2002/10/29 10:17:41 paf Exp $"; +static const char *RCSId="$Id: parser3odbc.C,v 1.13 2003/01/21 15:51:29 paf Exp $"; #ifndef _MSC_VER # error compile ISAPI module with MSVC [no urge for now to make it autoconf-ed (PAF)] @@ -192,6 +192,9 @@ public: if(column_count>MAX_COLS) column_count=MAX_COLS; + SQL_Error sql_error; +#define CHECK(afailed) if(afailed) services._throw(sql_error) + for(int i=0; i=offset) { - handlers.add_row(); + CHECK(handlers.add_row(sql_error)); for(int i=0; i