|
|
| version 1.254, 2024/09/13 04:01:22 | version 1.256, 2024/10/02 22:54:02 |
|---|---|
| Line 147 static void _bool(Request& r, MethodPara | Line 147 static void _bool(Request& r, MethodPara |
| // for some time due to stupid {} in original design | // for some time due to stupid {} in original design |
| const String& fmt=r.process_to_string(fmt_maybe_code); | const String& fmt=r.process_to_string(fmt_maybe_code); |
| const char* buf=format(r.get_self().as_double(), fmt.trim().cstrm()); | const char* buf=format_double(r.get_self().as_double(), fmt.trim().cstrm()); |
| r.write(String(buf)); | r.write(String(buf)); |
| } | } |
| Line 390 static void _match(Request& r, MethodPar | Line 390 static void _match(Request& r, MethodPar |
| if(vregex){ | if(vregex){ |
| if(options && options->is_defined()) | if(options && options->is_defined()) |
| throw Exception(PARSER_RUNTIME, 0, "you can not specify regex-object and options together"); | throw Exception(PARSER_RUNTIME, 0, "you cannot specify regex-object and options together"); |
| } else { | } else { |
| vregex=new VRegex(r.charsets.source(), ®exp.as_string(), (options) ? (&options->as_string()) : 0); | vregex=new VRegex(r.charsets.source(), ®exp.as_string(), (options) ? (&options->as_string()) : 0); |
| vregex->study(); | vregex->study(); |
| Line 486 public: | Line 486 public: |
| bool add_row(SQL_Error& /*error*/) { /* ignore */ return false; } | bool add_row(SQL_Error& /*error*/) { /* ignore */ return false; } |
| bool add_row_cell(SQL_Error& error, const char* str, size_t) { | bool add_row_cell(SQL_Error& error, const char* str, size_t) { |
| if(got_cell) { | if(got_cell) { |
| error=SQL_Error("result must not contain more then one row"); | error=SQL_Error("result must contain no more than one row"); |
| return true; | return true; |
| } | } |
| try { | try { |