|
|
| version 1.121, 2002/10/09 11:49:14 | version 1.123, 2002/12/09 11:07:39 |
|---|---|
| Line 366 static void _lower(Request& r, const Str | Line 366 static void _lower(Request& r, const Str |
| class String_sql_event_handlers : public SQL_Driver_query_event_handlers { | class String_sql_event_handlers : public SQL_Driver_query_event_handlers { |
| public: | public: |
| String_sql_event_handlers(Pool& apool, | String_sql_event_handlers(Pool& apool, |
| const String& astatement_string, const char *astatement_cstr) : | const String& astatement_string, const char *astatement_cstr): |
| pool(apool), | pool(apool), |
| statement_string(astatement_string), | statement_string(astatement_string), |
| statement_cstr(astatement_cstr), | statement_cstr(astatement_cstr), |
| Line 376 public: | Line 376 public: |
| void add_column(void *ptr, size_t size) { | void add_column(void *ptr, size_t size) { |
| if(got_column) | if(got_column) |
| throw Exception("parser.runtime", | throw SQL_Exception("parser.runtime", |
| &statement_string, | &statement_string, |
| "result must contain exactly one column"); | "result must contain exactly one column"); |
| got_column=true; | got_column=true; |
| Line 385 public: | Line 385 public: |
| void add_row() { /* ignore */ } | void add_row() { /* ignore */ } |
| void add_row_cell(void *ptr, size_t size) { | void add_row_cell(void *ptr, size_t size) { |
| if(got_cell) | if(got_cell) |
| throw Exception("parser.runtime", | throw SQL_Exception("parser.runtime", |
| &statement_string, | &statement_string, |
| "result must not contain more then one row"); | "result must not contain more then one row"); |
| got_cell=true; | got_cell=true; |
| Line 502 static void _save(Request& r, const Stri | Line 502 static void _save(Request& r, const Stri |
| } | } |
| // write | // write |
| const char *buf=src.cstr(String::UL_UNSPECIFIED); | const char *buf=src.cstr(String::UL_UNSPECIFIED, r.connection(0/*no error if none*/)); |
| file_write(r.absolute(file_name), | file_write(r.absolute(file_name), |
| buf, strlen(buf), true, do_append); | buf, strlen(buf), true, do_append); |
| } | } |