Diff for /parser3/src/classes/table.C between versions 1.176 and 1.181

version 1.176, 2003/04/11 15:00:04 version 1.181, 2003/04/25 12:32:31
Line 77  static Table::Action_options get_action_ Line 77  static Table::Action_options get_action_
   
         return result;          return result;
 }  }
 static check_option_param(bool options_defined,   static void check_option_param(bool options_defined, 
                           const String& method_name, MethodParams *params,                             const String& method_name, MethodParams *params, 
                           int next_param_index,                            int next_param_index,
                           const char *msg) {                            const char *msg) {
Line 381  static void table_row_to_hash(Array::Ite Line 381  static void table_row_to_hash(Array::Ite
                                 table=vtable->get_table();                                  table=vtable->get_table();
                         else {                          else {
                                 // no? creating table of same structure as source                                  // no? creating table of same structure as source
                                 Table::Action_options table_options;                                  Table::Action_options table_options(0, 0);
                                 table=new(pool) Table(pool, *ri.table, table_options/*no rows, just structure*/);                                  table=new(pool) Table(pool, *ri.table, table_options/*no rows, just structure*/);
                                 ri.hash->put(*key, new(pool) VTable(pool, table));                                  ri.hash->put(*key, new(pool) VTable(pool, table));
                         }                          }
Line 561  static bool _locate_expression(Table& ta Line 561  static bool _locate_expression(Table& ta
         Value& expression_code=params->as_junction(0, "must be expression");          Value& expression_code=params->as_junction(0, "must be expression");
   
         Locate_expression_func_info info={&r, &expression_code};          Locate_expression_func_info info={&r, &expression_code};
         table.locate(locate_expression_func, &info, o);          return table.locate(locate_expression_func, &info, o);
         return false;  
 }  }
 static bool _locate_name_value(Table& table, Table::Action_options o,  static bool _locate_name_value(Table& table, Table::Action_options o,
                                Request& r, const String& method_name, MethodParams *params) {                                 Request& r, const String& method_name, MethodParams *params) {
Line 637  static void _join(Request& r, const Stri Line 636  static void _join(Request& r, const Stri
                         &method_name,                           &method_name, 
                         "source and destination are same table");                          "source and destination are same table");
   
           if(o.reverse)
                   throw Exception(0,
                           &method_name,
                           "not implemented in this version, please upgrade");
         if(const Array *dest_columns=dest.columns()) { // dest is named          if(const Array *dest_columns=dest.columns()) { // dest is named
                 int saved_src_current=src.current();                  int saved_src_current=src.current();
                 int m=src.size()-o.offset;                  int m=src.size()-o.offset;
                 if(!o.limit || o.limit>m)                  if(o.limit<0 || o.limit>m)
                         o.limit=m;                          o.limit=m;
                 int end=o.offset+o.limit;                  int end=o.offset+o.limit;
                 for(int src_row=o.offset; src_row<end; src_row++) {                  for(int src_row=o.offset; src_row<end; src_row++) {

Removed from v.1.176  
changed lines
  Added in v.1.181


E-mail: