--- parser3/src/classes/int.C 2005/11/18 12:51:43 1.53.14.3 +++ parser3/src/classes/int.C 2005/08/09 08:14:48 1.54 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_INT_C="$Date: 2005/11/18 12:51:43 $"; +static const char * const IDENT_INT_C="$Date: 2005/08/09 08:14:48 $"; #include "classes.h" #include "pa_vmethod_frame.h" @@ -36,7 +36,7 @@ DECLARE_CLASS_VAR(int, new MInt, 0); static void _int(Request& r, MethodParams& params) { // just checking (default) syntax validity, never really using it here, just for string.int compatibility if(params.count()>0) - params.as_int(0, "default must be int", r); + params.as_junction(0, "default must be int"); VInt& vint=GET_SELF(r, VInt); r.write_no_lang(*new VInt(vint.get_int())); @@ -45,7 +45,7 @@ static void _int(Request& r, MethodParam static void _double(Request& r, MethodParams& params) { // just checking (default) syntax validity, never really using it here, just for string.doube compatibility if(params.count()>0) - params.as_double(0, "default must be double", r); + params.as_junction(0, "default must be double"); VInt& vint=GET_SELF(r, VInt); r.write_no_lang(*new VDouble(vint.as_double())); @@ -80,8 +80,7 @@ static void _sql(Request& r, MethodParam int val; HashStringValue* options; Value* default_code=0; - const String* string=sql_result_string(r, params, options, default_code); - if(string && !string->is_empty()) + if(const String* string=sql_result_string(r, params, options, default_code)) val=string->as_int(); else if(default_code)