Raise with a more detailed exception message, to debug issue #1540.

This commit is contained in:
Ansgar Becker
2009-12-22 14:16:54 +00:00
parent 9d722e2f07
commit 8d32a1fd0c

View File

@@ -1735,7 +1735,13 @@ begin
end;
if Fields.ColExists('Db') then begin
DBOType := lntDb;
DBONames.Add(Fields.Col('Db'));
try
DBONames.Add(Fields.Col('Db'));
except
on E:Exception do begin
raise Exception.Create(E.Message+CRLF+CRLF+'Fields.ColumnNames: '+Fields.ColumnNames.CommaText);
end;
end;
end;
if Fields.ColExists('Table_name') then begin
DBOType := lntTable;