Spezzamento su più righe per facilitare debug

git-svn-id: svn://10.65.10.50/branches/R_10_00@22770 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2012-12-21 06:56:29 +00:00
parent c702ddcb7e
commit ab46443149
2 changed files with 19 additions and 6 deletions

View File

@ -241,11 +241,22 @@ TQuery_type TCSV_recordset::parse_query(const char* query, TFilename& table)
if (q.starts_with("CSV(", true))
{
const int apici = q.find('"');
if (apici > 0)
_separator = q[apici+1];
else
_separator = ',';
switch (q[4])
{
case '\'':
case '"' :
if (q[5] == '\\' && q[6] == 't')
_separator = '\t';
else
_separator = q[5];
break;
default :
if (q[4] != ')')
_separator = q[4];
else
_separator = ',';
break;
}
q = q.after(')');
q.trim();

View File

@ -287,7 +287,9 @@ const TString & TVariable_rectype::get_str(const char* fieldname) const
}
f = (TVariable_field*)_virtual_fields.objptr(fieldname);
}
return f != NULL ? f->get() : TRectype::get_str(fieldname);
if (f != NULL)
return f->get(); // Easier to breakpoint
return TRectype::get_str(fieldname);
}
void TVariable_rectype::put_str(const char* fieldname, const char* val)