Diff for /parser3/src/classes/table.C between versions 1.243 and 1.244

version 1.243, 2008/05/27 19:01:46 version 1.244, 2008/06/26 15:00:42
Line 1117  static void _sql(Request& r, MethodParam Line 1117  static void _sql(Request& r, MethodParam
         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;
         if(params.count()>1) {          if(params.count()>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");
Line 1129  static void _sql(Request& r, MethodParam Line 1129  static void _sql(Request& r, MethodParam
                                         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++;

Removed from v.1.243  
changed lines
  Added in v.1.244


E-mail: