Diff for /parser3/src/classes/table.C between versions 1.168 and 1.170

version 1.168, 2002/11/25 14:10:52 version 1.170, 2002/12/09 12:19:16
Line 601  static void _join(Request& r, const Stri Line 601  static void _join(Request& r, const Stri
 }  }
   
 #ifndef DOXYGEN  #ifndef DOXYGEN
 class Table_sql_event_handlers : public SQL_Driver_query_event_handlers {  class Table_sql_event_handlers: public SQL_Driver_query_event_handlers {
 public:  public:
         Table_sql_event_handlers(Pool& apool, const String& amethod_name,          Table_sql_event_handlers(Pool& apool, const String& amethod_name,
                 const String& astatement_string, const char *astatement_cstr) :                  const String& astatement_string, const char *astatement_cstr) :
Line 615  public: Line 615  public:
         {          {
         }          }
   
         void add_column(void *ptr, size_t size) {          bool add_column(SQL_Error& error, void *ptr, size_t size) {
                 String *column=new(pool) String(pool);                  try {
                 column->APPEND_TAINTED(                          String *column=new(pool) String(pool);
                         (const char *)ptr, size,                           column->APPEND_TAINTED(
                         statement_cstr, 0);                                  (const char *)ptr, size, 
                 columns+=column;                                  statement_cstr, 0);
                           columns+=column;
                           return false;
                   } catch(...) {
                           error=SQL_Error("exception occured in Table_sql_event_handlers::add_column");
                           return true;
                   }
         }          }
         void before_rows() {           bool before_rows(SQL_Error& error) { 
                 table=new(pool) Table(pool, &method_name, &columns);                  try {
                           table=new(pool) Table(pool, &method_name, &columns);
                           return false;
                   } catch(...) {
                           error=SQL_Error("exception occured in Table_sql_event_handlers::before_rows");
                           return true;
                   }
         }          }
         void add_row() {          bool add_row(SQL_Error& error) {
                 (*table)+=(row=new(pool) Array(pool));                  try {
                           (*table)+=(row=new(pool) Array(pool));
                           return false;
                   } catch(...) {
                           error=SQL_Error("exception occured in Table_sql_event_handlers::add_row");
                           return true;
                   }
         }          }
         void add_row_cell(void *ptr, size_t size) {          bool add_row_cell(SQL_Error& error, void *ptr, size_t size) {
                 String *cell=new(pool) String(pool);                  try {
                 if(size)                          String *cell=new(pool) String(pool);
                         cell->APPEND_TAINTED(                          if(size)
                                 (const char *)ptr, size,                                   cell->APPEND_TAINTED(
                                 statement_cstr, table->size()-1);                                          (const char *)ptr, size, 
                 (*row)+=cell;                                          statement_cstr, table->size()-1);
                           (*row)+=cell;
                           return false;
                   } catch(...) {
                           error=SQL_Error("exception occured in Table_sql_event_handlers::add_row_cell");
                           return true;
                   }
         }          }
   
 private:  private:

Removed from v.1.168  
changed lines
  Added in v.1.170


E-mail: