Diff for /parser3/src/classes/string.C between versions 1.92 and 1.93

version 1.92, 2001/12/15 21:28:18 version 1.93, 2002/01/16 10:28:33
Line 84  static void _double(Request& r, const St Line 84  static void _double(Request& r, const St
   
         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(),           char *buf=format(pool, r.self->as_double(), 
                 r.process(fmt).as_string().cstr(String::UL_UNSPECIFIED, r.connection));                  r.process(fmt).as_string().cstr(String::UL_UNSPECIFIED, r.connection(0)));
   
         String result(pool);          String result(pool);
         result.APPEND_CLEAN(buf, 0,           result.APPEND_CLEAN(buf, 0, 
Line 337  const String* sql_result_string(Request& Line 337  const String* sql_result_string(Request&
                                                                 Hash *& options, Value *& default_code) {                                                                  Hash *& options, Value *& default_code) {
         Pool& pool=r.pool();          Pool& pool=r.pool();
   
         if(!r.connection)  
                 throw Exception(0, 0,  
                         &method_name,  
                         "without connect");  
   
         Value& statement=params->as_junction(0, "statement must be code");          Value& statement=params->as_junction(0, "statement must be code");
   
         ulong limit=0;          ulong limit=0;
Line 371  const String* sql_result_string(Request& Line 366  const String* sql_result_string(Request&
         Temp_lang temp_lang(r, String::UL_SQL);          Temp_lang temp_lang(r, String::UL_SQL);
         const String& statement_string=r.process(statement).as_string();          const String& statement_string=r.process(statement).as_string();
         const char *statement_cstr=          const char *statement_cstr=
                 statement_string.cstr(String::UL_UNSPECIFIED, r.connection);                  statement_string.cstr(String::UL_UNSPECIFIED, r.connection(&method_name));
         String_sql_event_handlers handlers(pool, statement_string, statement_cstr);          String_sql_event_handlers handlers(pool, statement_string, statement_cstr);
         try {          try {
                 r.connection->query(                  r.connection(&method_name)->query(
                         statement_cstr, offset, limit,                           statement_cstr, offset, limit, 
                         handlers);                          handlers);
         } catch(const Exception& e) { // query problem          } catch(const Exception& e) { // query problem

Removed from v.1.92  
changed lines
  Added in v.1.93


E-mail: