|
|
| version 1.358, 2020/12/30 10:16:53 | version 1.360, 2021/12/22 21:59:50 |
|---|---|
| Line 918 static Table2hash_distint get_distinct(V | Line 918 static Table2hash_distint get_distinct(V |
| static void _hash(Request& r, MethodParams& params) { | static void _hash(Request& r, MethodParams& params) { |
| Table& self_table=GET_SELF(r, VTable).table(); | Table& self_table=GET_SELF(r, VTable).table(); |
| VHash& result=*new VHash; | VHash& result=*new VHash; |
| Table::columns_type columns=self_table.columns(); | |
| Table2hash_distint distinct=D_ILLEGAL; | Table2hash_distint distinct=D_ILLEGAL; |
| Table2hash_value_type value_type=C_HASH; | Table2hash_value_type value_type=C_HASH; |
| Line 1441 static void _columns(Request& r, MethodP | Line 1440 static void _columns(Request& r, MethodP |
| } | } |
| static void _select(Request& r, MethodParams& params) { | static void _select(Request& r, MethodParams& params) { |
| InCycle temp(r); | |
| Value& vcondition=params.as_expression(0, "condition must be number, bool or expression"); | Value& vcondition=params.as_expression(0, "condition must be number, bool or expression"); |
| Table& source_table=GET_SELF(r, VTable).table(); | Table& source_table=GET_SELF(r, VTable).table(); |
| Line 1483 static void _select(Request& r, MethodPa | Line 1483 static void _select(Request& r, MethodPa |
| bool condition=r.process(vcondition).as_bool(); | bool condition=r.process(vcondition).as_bool(); |
| if(r.check_skip_break()) | |
| break; | |
| if(condition && ++appended > (size_t)offset) // ...condition is true, adding to the result | if(condition && ++appended > (size_t)offset) // ...condition is true, adding to the result |
| result_table+=source_table[row]; | result_table+=source_table[row]; |
| if(row==0) break; | if(row==0) break; |
| Line 1493 static void _select(Request& r, MethodPa | Line 1496 static void _select(Request& r, MethodPa |
| bool condition=r.process(vcondition).as_bool(); | bool condition=r.process(vcondition).as_bool(); |
| if(r.check_skip_break()) | |
| break; | |
| if(condition && ++appended > (size_t)offset) // ...condition is true, adding to the result | if(condition && ++appended > (size_t)offset) // ...condition is true, adding to the result |
| result_table+=source_table[row]; | result_table+=source_table[row]; |
| } | } |