Diff for /parser3/src/classes/string.C between versions 1.159 and 1.160

version 1.159, 2008/05/22 17:43:30 version 1.160, 2008/06/26 15:00:42
Line 466  const String* sql_result_string(Request& Line 466  const String* sql_result_string(Request&
         Value& statement=params.as_junction(0, "statement must be code");          Value& statement=params.as_junction(0, "statement must be code");
   
         HashStringValue* bind=0;          HashStringValue* bind=0;
         ulong limit=0;          ulong limit=SQL_NO_LIMIT;
         ulong offset=0;          ulong offset=0;
         default_code=0;          default_code=0;
         if(params.count()>1) {          if(params.count()>1) {
Line 479  const String* sql_result_string(Request& Line 479  const String* sql_result_string(Request&
                                         bind=vbind->get_hash();                                          bind=vbind->get_hash();
                                 }                                  }
                                 if(Value* vlimit=options->get(sql_limit_name)) {                                  if(Value* vlimit=options->get(sql_limit_name)) {
                                         valid_options++;                                          if(vlimit->is_defined()){
                                         limit=(ulong)r.process_to_value(*vlimit).as_double();                                                  valid_options++;
                                                   limit=(ulong)r.process_to_value(*vlimit).as_double();
                                           } else
                                                   throw Exception(PARSER_RUNTIME,
                                                                   0,
                                                                   "limit must be defined");
                                 }                                  }
                                 if(Value* voffset=options->get(sql_offset_name)) {                                  if(Value* voffset=options->get(sql_offset_name)) {
                                         valid_options++;                                          valid_options++;
Line 510  const String* sql_result_string(Request& Line 515  const String* sql_result_string(Request&
         const char* statement_cstr=          const char* statement_cstr=
                 statement_string.cstr(String::L_UNSPECIFIED, r.connection());                  statement_string.cstr(String::L_UNSPECIFIED, r.connection());
         String_sql_event_handlers handlers(statement_string, statement_cstr);          String_sql_event_handlers handlers(statement_string, statement_cstr);
   
         r.connection()->query(          r.connection()->query(
                 statement_cstr,                   statement_cstr, 
                 placeholders_count, placeholders,                  placeholders_count, placeholders,

Removed from v.1.159  
changed lines
  Added in v.1.160


E-mail: