|
|
| version 1.194, 2003/11/25 15:41:57 | version 1.196, 2004/02/11 15:33:13 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: @b table parser class. | Parser: @b table parser class. |
| Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001-2004 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) |
| */ | */ |
| Line 644 static void _hash(Request& r, MethodPara | Line 644 static void _hash(Request& r, MethodPara |
| &r, | &r, |
| &self_table, | &self_table, |
| /*key_code=*/key_param->get_junction()?key_param:0, | /*key_code=*/key_param->get_junction()?key_param:0, |
| /*key_field=*/(info.key_code?-1 | /*key_field=*/0, |
| :self_table.column_name2index(key_param->as_string(), true)), | |
| &value_fields, | &value_fields, |
| &result.hash(), | &result.hash(), |
| distinct, | distinct, |
| /*row=*/0 | /*row=*/0 |
| }; | }; |
| info.key_field=(info.key_code?-1 | |
| :self_table.column_name2index(key_param->as_string(), true)); | |
| int saved_current=self_table.current(); | int saved_current=self_table.current(); |
| self_table.for_each(table_row_to_hash, &info); | self_table.for_each(table_row_to_hash, &info); |