Diff for /parser3/src/classes/table.C between versions 1.298 and 1.302

version 1.298, 2013/10/10 23:08:12 version 1.302, 2015/04/06 22:27:25
Line 185  static void _create(Request& r, MethodPa Line 185  static void _create(Request& r, MethodPa
         // data          // data
         Temp_lang temp_lang(r, String::L_PASS_APPENDED);          Temp_lang temp_lang(r, String::L_PASS_APPENDED);
         const String&  data=          const String&  data=
                 r.process_to_string(params.as_junction(data_param_index, "body must be code"));                  r.process_to_string(params.as_junction(data_param_index, "body must be table or code"));
   
         // parse columns          // parse columns
         size_t raw_pos_after=0;          size_t raw_pos_after=0;
Line 1113  static void _foreach(Request& r, MethodP Line 1113  static void _foreach(Request& r, MethodP
                         table.set_current(row);                          table.set_current(row);
   
                         if(rownum_var_name)                          if(rownum_var_name)
                                 var_context->put_element(*rownum_var_name, new VString(*new String(String::Body::Format(row), String::L_CLEAN)));                                  r.put_element(*var_context, *rownum_var_name, new VString(*new String(String::Body::Format(row), String::L_CLEAN)));
                         if(value_var_name)                          if(value_var_name)
                                 var_context->put_element(*value_var_name, new VTable(&table));                                  r.put_element(*var_context, *value_var_name, new VTable(&table));
   
                         StringOrValue sv_processed=r.process(body_code);                          StringOrValue sv_processed=r.process(body_code);
                         Request::Skip lskip=r.get_skip(); r.set_skip(Request::SKIP_NOTHING);                          Request::Skip lskip=r.get_skip(); r.set_skip(Request::SKIP_NOTHING);
Line 1138  static void _foreach(Request& r, MethodP Line 1138  static void _foreach(Request& r, MethodP
                         table.set_current(row);                          table.set_current(row);
     
                         if(rownum_var_name)                          if(rownum_var_name)
                                 var_context->put_element(*rownum_var_name, new VString(*new String(String::Body::Format(row), String::L_CLEAN)));                                  r.put_element(*var_context, *rownum_var_name, new VString(*new String(String::Body::Format(row), String::L_CLEAN)));
                         if(value_var_name)                          if(value_var_name)
                                 var_context->put_element(*value_var_name, new VTable(&table));                                  r.put_element(*var_context, *value_var_name, new VTable(&table));
   
                         r.process_write(body_code);                          r.process_write(body_code);
                         Request::Skip lskip=r.get_skip(); r.set_skip(Request::SKIP_NOTHING);                          Request::Skip lskip=r.get_skip(); r.set_skip(Request::SKIP_NOTHING);
Line 1264  static void marshal_bind( Line 1264  static void marshal_bind(
 // not static, used elsewhere  // not static, used elsewhere
 int marshal_binds(HashStringValue& hash, SQL_Driver::Placeholder*& placeholders) {  int marshal_binds(HashStringValue& hash, SQL_Driver::Placeholder*& placeholders) {
         int hash_count=hash.count();          int hash_count=hash.count();
         placeholders=new(UseGC) SQL_Driver::Placeholder[hash_count];          placeholders=new SQL_Driver::Placeholder[hash_count];
         SQL_Driver::Placeholder* ptr=placeholders;          SQL_Driver::Placeholder* ptr=placeholders;
         hash.for_each<SQL_Driver::Placeholder**>(marshal_bind, &ptr);          hash.for_each<SQL_Driver::Placeholder**>(marshal_bind, &ptr);
         return hash_count;          return hash_count;

Removed from v.1.298  
changed lines
  Added in v.1.302


E-mail: