|
|
| version 1.178, 2003/04/14 12:08:16 | version 1.181, 2003/04/25 12:32:31 |
|---|---|
| Line 77 static Table::Action_options get_action_ | Line 77 static Table::Action_options get_action_ |
| return result; | return result; |
| } | } |
| static check_option_param(bool options_defined, | static void check_option_param(bool options_defined, |
| const String& method_name, MethodParams *params, | const String& method_name, MethodParams *params, |
| int next_param_index, | int next_param_index, |
| const char *msg) { | const char *msg) { |
| Line 381 static void table_row_to_hash(Array::Ite | Line 381 static void table_row_to_hash(Array::Ite |
| table=vtable->get_table(); | table=vtable->get_table(); |
| else { | else { |
| // no? creating table of same structure as source | // no? creating table of same structure as source |
| Table::Action_options table_options; | Table::Action_options table_options(0, 0); |
| table=new(pool) Table(pool, *ri.table, table_options/*no rows, just structure*/); | table=new(pool) Table(pool, *ri.table, table_options/*no rows, just structure*/); |
| ri.hash->put(*key, new(pool) VTable(pool, table)); | ri.hash->put(*key, new(pool) VTable(pool, table)); |
| } | } |
| Line 643 static void _join(Request& r, const Stri | Line 643 static void _join(Request& r, const Stri |
| if(const Array *dest_columns=dest.columns()) { // dest is named | if(const Array *dest_columns=dest.columns()) { // dest is named |
| int saved_src_current=src.current(); | int saved_src_current=src.current(); |
| int m=src.size()-o.offset; | int m=src.size()-o.offset; |
| if(!o.limit || o.limit>m) | if(o.limit<0 || o.limit>m) |
| o.limit=m; | o.limit=m; |
| int end=o.offset+o.limit; | int end=o.offset+o.limit; |
| for(int src_row=o.offset; src_row<end; src_row++) { | for(int src_row=o.offset; src_row<end; src_row++) { |