--- parser3/src/classes/table.C 2002/05/17 12:18:12 1.151.2.1 +++ parser3/src/classes/table.C 2002/08/01 11:26:44 1.154 @@ -3,10 +3,10 @@ Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) - - $Id: table.C,v 1.151.2.1 2002/05/17 12:18:12 paf Exp $ */ +static const char* IDENT_TABLE_C="$Id: table.C,v 1.154 2002/08/01 11:26:44 paf Exp $"; + #include "classes.h" #include "pa_common.h" #include "pa_request.h" @@ -288,8 +288,8 @@ static void _hash(Request& r, const Stri Pool& pool=r.pool(); Table& self_table=static_cast(r.self)->table(); Value& result=*new(pool) VHash(pool); - if(const Array *columns=self_table.columns()) - if(columns->size()>1) { + if(const Array *columns=self_table.columns()) + if(columns->size()>0) { const String& key_field_name=params->as_no_junction(0, "key field name must not be code").as_string(); int key_field=self_table.column_name2index(key_field_name, true);