PG8 Blob problem
Posted: 07.11.2005, 23:49
Hi,
I've some problem with Zeos 651 PG8 driver bytea/text field handling:
selecting RTF text from bytea/text field causes incorrect result due to DecodeString function
original code:
if i remove DecodeString function it works fine:
DecodeString function comment in source:
"Converts an string from escape PostgreSQL format.
@param Value a string in PostgreSQL escape format.
@return a regular string."
Platform:
Zeosdbo: 6.5.1-alpha_cvs_13-10-2005
Protocol: postgresql-8.x (libpq8x.dll replaced with ODBC 8.1.0 libpq.dll)
IDE: Delphi7
DB: PostgreSQL 8.1.0
OS: Windows XP SP2
Thanks for help
Balazs
//sorry for my English
I've some problem with Zeos 651 PG8 driver bytea/text field handling:
selecting RTF text from bytea/text field causes incorrect result due to DecodeString function
original code:
Code: Select all
function TZPostgreSQLResultSet.GetString(ColumnIndex: Integer): String;
begin
Result := DecodeString(GetRawString(ColumnIndex));
end;
Code: Select all
function TZPostgreSQLResultSet.GetString(ColumnIndex: Integer): String;
begin
Result := GetRawString(ColumnIndex);
end;
"Converts an string from escape PostgreSQL format.
@param Value a string in PostgreSQL escape format.
@return a regular string."
Platform:
Zeosdbo: 6.5.1-alpha_cvs_13-10-2005
Protocol: postgresql-8.x (libpq8x.dll replaced with ODBC 8.1.0 libpq.dll)
IDE: Delphi7
DB: PostgreSQL 8.1.0
OS: Windows XP SP2
Thanks for help
Balazs
//sorry for my English