* Not only a comma is a seperator in the from-clause of a query. Fixes bug #10148 (+test)

git-svn-id: trunk@9254 -
This commit is contained in:
joost 2007-11-14 22:08:01 +00:00
parent 5156a32936
commit dc33a9bc87
2 changed files with 15 additions and 1 deletions

View File

@ -1072,7 +1072,7 @@ begin
Move(PStatementPart^,FFromPart[1],(StrLength));
FFrompart := trim(FFrompart);
if pos(',',FFromPart) > 0 then
if ExtractStrings([',',' '],[],pchar(FFromPart),nil) > 1 then
FUpdateable := False // select-statements from more then one table are not updateable
else
begin

View File

@ -26,6 +26,7 @@ type
procedure TearDown; override;
procedure RunTest; override;
published
procedure TestParseJoins; // bug 10148
procedure TestInsertLargeStrFields; // bug 9600
procedure TestNumericNames; // Bug9661
procedure Test11Params;
@ -875,6 +876,19 @@ begin
inherited RunTest;
end;
procedure TTestFieldTypes.TestParseJoins;
begin
with TSQLDBConnector(DBConnector) do
begin
with query do
begin
SQL.Text:='select TT.NAME from FPDEV left join FPDEV as TT on TT.ID=FPDEV.ID';
Open;
close;
end;
end;
end;
procedure TTestFieldTypes.TestInsertLargeStrFields;
begin
with TSQLDBConnector(DBConnector) do