Skip to content

Commit e8979be

Browse files
committed
fix: wrong hex prefix/postfix for PostgreSQL, insecure break after testing 1024 characters in IsHex
Refs #1980 Co-authored-by: ansgarbecker <ansgarbecker@users.noreply.github.com>
1 parent e61ffdc commit e8979be

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎source/dbconnection.pas‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2209,8 +2209,8 @@ constructor TPgConnection.Create(AOwner: TComponent);
22092209
i: Integer;
22102210
begin
22112211
inherited;
2212-
FHexPrefix := '\x';
2213-
FHexPostfix := '';
2212+
FHexPrefix := '''\x';
2213+
FHexPostfix := '''';
22142214
FQuoteChars := '"';
22152215
SetLength(FDatatypes, Length(PostGreSQLDatatypes));
22162216
for i:=0 to High(PostGreSQLDatatypes) do

0 commit comments

Comments
 (0)