--- parser3/src/classes/hash.C 2001/07/23 11:19:25 1.11 +++ parser3/src/classes/hash.C 2001/08/06 09:33:19 1.13 @@ -5,9 +5,9 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: hash.C,v 1.11 2001/07/23 11:19:25 parser Exp $ + $Id: hash.C,v 1.13 2001/08/06 09:33:19 parser Exp $ */ -static const char *RCSId="$Id: hash.C,v 1.11 2001/07/23 11:19:25 parser Exp $"; +static const char *RCSId="$Id: hash.C,v 1.13 2001/08/06 09:33:19 parser Exp $"; #include "classes.h" #include "pa_request.h" @@ -88,6 +88,7 @@ public: rows_hash.put(*cell, row_vhash); } else row_hash->put(*columns.get_string(column_index), new(pool) VString(*cell)); + column_index++; } private: @@ -183,7 +184,7 @@ MHash::MHash(Pool& apool) : Methoded(apo add_native_method("sql", Method::CT_DYNAMIC, _sql, 1, 3); // ^hash.keys[] - add_native_method("keys", Method::CT_DYNAMIC, _keys, 0, 0); + add_native_method("_keys", Method::CT_DYNAMIC, _keys, 0, 0); } // global variable