--- parser3/src/classes/table.C 2009/07/29 05:01:33 1.263 +++ parser3/src/classes/table.C 2009/08/31 08:28:53 1.265 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_TABLE_C="$Date: 2009/07/29 05:01:33 $"; +static const char * const IDENT_TABLE_C="$Date: 2009/08/31 08:28:53 $"; #if (!defined(NO_STRINGSTREAM) && !defined(FREEBSD4)) #include @@ -17,6 +17,7 @@ using namespace std; #include "pa_common.h" #include "pa_request.h" +#include "pa_charsets.h" #include "pa_vtable.h" #include "pa_vint.h" #include "pa_sql_connection.h" @@ -26,7 +27,7 @@ using namespace std; class MTable: public Methoded { public: // VStateless_class - Value* create_new_value(Pool&, HashStringValue*) { return new VTable(); } + Value* create_new_value(Pool&) { return new VTable(); } public: MTable(); @@ -911,7 +912,15 @@ static void _sort(Request& r, MethodPara else seq[i].value.d=value.as_double(); } - // sort keys + + // @todo: handle this elsewhere + if(r.charsets.source().NAME()=="KOI8-R" && key_values_are_strings) { + for(i=0; i