mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Fix UPDATE + DELETE queries in data grid for PostgreSQL, which do not support a LIMIT clause.
This commit is contained in:
@@ -4681,9 +4681,12 @@ begin
|
||||
Result := Result + IntToStr(Limit);
|
||||
end;
|
||||
ngPgSQL: begin
|
||||
Result := Result + QueryBody + ' LIMIT ' + IntToStr(Limit);
|
||||
if Offset > 0 then
|
||||
Result := Result + ' OFFSET ' + IntToStr(Offset);
|
||||
if QueryType = 'SELECT' then begin
|
||||
Result := Result + QueryBody + ' LIMIT ' + IntToStr(Limit);
|
||||
if Offset > 0 then
|
||||
Result := Result + ' OFFSET ' + IntToStr(Offset);
|
||||
end else
|
||||
Result := Result + QueryBody;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
Reference in New Issue
Block a user