--- parser3/src/classes/table.C 2001/05/08 10:23:50 1.78 +++ parser3/src/classes/table.C 2001/06/29 08:35:26 1.87 @@ -4,9 +4,8 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - - $Id: table.C,v 1.78 2001/05/08 10:23:50 paf Exp $ */ +static const char *RCSId="$Id: table.C,v 1.87 2001/06/29 08:35:26 parser Exp $"; #include "pa_config_includes.h" @@ -195,7 +194,7 @@ static void _offset(Request& r, const St Table& table=static_cast(r.self)->table(); if(params->size()) { Value& offset_expr=params->get_junction(0, "offset must be expression"); - table.shift((int)r.process(offset_expr).as_double()); + table.shift(r.process(offset_expr).as_int()); } else { Value& value=*new(pool) VInt(pool, table.current()); r.write_no_lang(value); @@ -246,7 +245,7 @@ static void store_column_item_to_hash(Ar if(const String *column_item=ri.table->item(column_name)) value=new(*ri.pool) VString(*column_item); else - value=new(*ri.pool) VUnknown(*ri.pool); + value=new(*ri.pool) VVoid(*ri.pool); ri.hash->put(column_name, value); } static void _record(Request& r, const String& method_name, MethodParams *) { @@ -505,7 +504,7 @@ static void _sql(Request& r, const Strin &sql_column_count, &sql_columns, &sql_row_count, &sql_rows); } - PCATCH(e) { // connect/process problem + PCATCH(e) { // query problem rethrow_me=e; need_rethrow=true; } PEND_CATCH @@ -525,20 +524,19 @@ static void _sql(Request& r, const Strin Table& table=*new(pool) Table(pool, &method_name, &table_columns); - { - for(unsigned long r=0; r