|
|
| version 1.16, 2002/02/08 08:30:10 | version 1.18, 2002/04/10 09:53:14 |
|---|---|
| Line 52 public: | Line 52 public: |
| void add_column(void *ptr, size_t size) { /* ignore */ } | void add_column(void *ptr, size_t size) { /* ignore */ } |
| void before_rows() { | void before_rows() { |
| // there are some result rows, which is wrong | // there are some result rows, which is wrong |
| throw Exception(0, 0, | throw Exception("parser.runtime", |
| &statement_string, | &statement_string, |
| "must return nothing"); | "must return nothing"); |
| } | } |
| Line 70 static void _sql(Request& r, const Strin | Line 70 static void _sql(Request& r, const Strin |
| Value& statement=params->as_junction(0, "statement must be code"); | Value& statement=params->as_junction(0, "statement must be code"); |
| Temp_lang temp_lang(r, String::UL_SQL); | Temp_lang temp_lang(r, String::UL_SQL); |
| const String& statement_string=r.process(statement).as_string(); | const String& statement_string=r.process_to_string(statement); |
| const char *statement_cstr= | const char *statement_cstr= |
| statement_string.cstr(String::UL_UNSPECIFIED, r.connection(&method_name)); | statement_string.cstr(String::UL_UNSPECIFIED, r.connection(&method_name)); |
| Void_sql_event_handlers handlers(pool, statement_string); | Void_sql_event_handlers handlers(pool, statement_string); |
| Line 80 static void _sql(Request& r, const Strin | Line 80 static void _sql(Request& r, const Strin |
| handlers); | handlers); |
| } catch(const Exception& e) { | } catch(const Exception& e) { |
| // more specific source [were url] | // more specific source [were url] |
| throw Exception(e.type(), e.code(), | throw Exception("sql.execute", |
| &statement_string, | &statement_string, |
| "%s", e.comment()); | "%s", e.comment()); |
| } | } |