--- parser3/src/classes/table.C 2008/06/26 15:00:42 1.244 +++ parser3/src/classes/table.C 2008/09/03 14:29:17 1.246 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_TABLE_C="$Date: 2008/06/26 15:00:42 $"; +static const char * const IDENT_TABLE_C="$Date: 2008/09/03 14:29:17 $"; #ifndef NO_STRINGSTREAM #include @@ -451,6 +451,10 @@ static void _save(Request& r, MethodPara --param_index; const String& file_name=params.as_string(param_index++, FILE_NAME_MUST_NOT_BE_CODE); + String file_spec=r.absolute(file_name); + + if(do_append && file_exist(file_spec)) + output_column_names=false; TableSeparators separators; if(param_indexget_hash(); } if(Value* vlimit=options->get(sql_limit_name)) { - if(vlimit->is_defined()){ - valid_options++; - limit=(ulong)r.process_to_value(*vlimit).as_double(); - } else - throw Exception(PARSER_RUNTIME, - 0, - "limit must be defined"); + valid_options++; + limit=(ulong)r.process_to_value(*vlimit).as_double(); } if(Value* voffset=options->get(sql_offset_name)) { valid_options++;