|
|
| version 1.25, 2002/09/18 08:52:49 | version 1.28, 2003/01/21 15:51:08 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: @b VOID parser class. | Parser: @b VOID parser class. |
| Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) |
| */ | */ |
| Line 54 static void _double(Request& r, const St | Line 54 static void _double(Request& r, const St |
| } | } |
| #ifndef DOXYGEN | #ifndef DOXYGEN |
| class Void_sql_event_handlers : public SQL_Driver_query_event_handlers { | class Void_sql_event_handlers: public SQL_Driver_query_event_handlers { |
| public: | public: |
| Void_sql_event_handlers(Pool& apool, const String& astatement_string) : | Void_sql_event_handlers(Pool& apool, const String& astatement_string) : |
| pool(apool), statement_string(astatement_string) { | pool(apool), statement_string(astatement_string) { |
| } | } |
| void add_column(void *ptr, size_t size) { /* ignore */ } | bool add_column(SQL_Error& /*error*/, void *ptr, size_t size) { /* ignore */ return false; } |
| void before_rows() { | bool before_rows(SQL_Error& error) { |
| // there are some result rows, which is wrong | // there are some result rows, which is wrong |
| throw Exception("parser.runtime", | error=SQL_Error("parser.runtime", |
| &statement_string, | &statement_string, |
| "must return nothing"); | "must return nothing"); |
| return true; | |
| } | } |
| void add_row() { /* never */ } | bool add_row(SQL_Error& /*error*/) { /* never */ return false; } |
| void add_row_cell(void *ptr, size_t size) { /* never */ } | bool add_row_cell(SQL_Error& /*error*/, void *ptr, size_t size) { /* never */ return false; } |
| private: | private: |
| Pool& pool; | Pool& pool; |