[fpc-pascal] pqconnection patch
Joao Morais
post at joaomorais.com.br
Wed May 28 18:52:14 CEST 2008
Hello,
The following patch fixes the reading of a bytea field from a PgSQL =
database.
Btw is there someone working on pg's blob storage?
Joao Morais
-------------- next part --------------
Index: packages/fcl-db/src/sqldb/postgres/pqconnection.pp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- packages/fcl-db/src/sqldb/postgres/pqconnection.pp (revision 11085)
+++ packages/fcl-db/src/sqldb/postgres/pqconnection.pp (working copy)
@@ -103,6 +103,7 @@
SErrPrepareFailed =3D 'Preparation of query failed.';
=
const Oid_Bool =3D 16;
+ Oid_Bytea =3D 17;
Oid_Text =3D 25;
Oid_Oid =3D 26;
Oid_Name =3D 19;
@@ -395,6 +396,7 @@
end;
// Oid_text : Result :=3D ftstring;
Oid_text : Result :=3D ftBlob;
+ Oid_Bytea : Result :=3D ftBlob;
Oid_oid : Result :=3D ftInteger;
Oid_int8 : Result :=3D ftLargeInt;
Oid_int4 : Result :=3D ftInteger;
More information about the fpc-pascal
mailing list