Diff for /parser3/src/classes/string.C between versions 1.84 and 1.86

version 1.84, 2001/10/19 12:43:30 version 1.86, 2001/10/29 13:04:46
Line 83  static void _double(Request& r, const St Line 83  static void _double(Request& r, const St
         Value& fmt=params->as_junction(0, "fmt must be code");          Value& fmt=params->as_junction(0, "fmt must be code");
   
         Temp_lang temp_lang(r, String::UL_PASS_APPENDED);          Temp_lang temp_lang(r, String::UL_PASS_APPENDED);
         char *buf=format(pool, r.self->as_double(), r.process(fmt).as_string().cstr());          char *buf=format(pool, r.self->as_double(), 
                   r.process(fmt).as_string().cstr(String::UL_UNSPECIFIED));
   
         String result(pool);          String result(pool);
         result.APPEND_CLEAN(buf, 0,           result.APPEND_CLEAN(buf, 0, 
Line 349  const String* sql_result_string(Request& Line 350  const String* sql_result_string(Request&
         if(params->size()>1) {          if(params->size()>1) {
                 Value& voptions=params->as_no_junction(1, "options must be hash, not code");                  Value& voptions=params->as_no_junction(1, "options must be hash, not code");
                 if(voptions.is_defined())                  if(voptions.is_defined())
                         if(options=voptions.get_hash()) {                          if(options=voptions.get_hash(&method_name)) {
                                 if(Value *vlimit=(Value *)options->get(*sql_limit_name))                                  if(Value *vlimit=(Value *)options->get(*sql_limit_name))
                                         limit=(ulong)r.process(*vlimit).as_double();                                          limit=(ulong)r.process(*vlimit).as_double();
                                 if(Value *voffset=(Value *)options->get(*sql_offset_name))                                  if(Value *voffset=(Value *)options->get(*sql_offset_name))

Removed from v.1.84  
changed lines
  Added in v.1.86


E-mail: