|
|
| version 1.367, 2024/10/05 18:05:23 | version 1.368, 2024/10/20 13:29:37 |
|---|---|
| Line 1019 static void _cells(Request& r, MethodPar | Line 1019 static void _cells(Request& r, MethodPar |
| int limit=params.as_int(params.count()-1, "offset must be expression", r); | int limit=params.as_int(params.count()-1, "offset must be expression", r); |
| if(limit<0) | if(limit<0) |
| limit=0; | limit=0; |
| if(limit<row_size) | if((size_t)limit<row_size) |
| row_size=limit; | row_size=limit; |
| } | } |
| Line 1550 static void _rename(Request& r, MethodPa | Line 1550 static void _rename(Request& r, MethodPa |
| Table& table=GET_SELF(r, VTable).table(); | Table& table=GET_SELF(r, VTable).table(); |
| if(Table::columns_type columns=table.columns()) { | if(Table::columns_type columns=table.columns()) { |
| if(names){ | if(names){ |
| for(int i=0; i<columns->count(); i++) { | for(size_t i=0; i<columns->count(); i++) { |
| const String *column = columns->get(i); | const String *column = columns->get(i); |
| if(Value* vto=names->get(*column)){ | if(Value* vto=names->get(*column)){ |
| if(const String *sto=vto->get_string()) | if(const String *sto=vto->get_string()) |
| Line 1560 static void _rename(Request& r, MethodPa | Line 1560 static void _rename(Request& r, MethodPa |
| } | } |
| } | } |
| } else if(name_from){ | } else if(name_from){ |
| for(int i=0; i<columns->count(); i++) { | for(size_t i=0; i<columns->count(); i++) { |
| const String *column = columns->get(i); | const String *column = columns->get(i); |
| if(*column == *name_from) | if(*column == *name_from) |
| columns->put(i, name_to); | columns->put(i, name_to); |