Re: Latest ODBC driver? / lo (blob) problem with fieldtype in Delphi

Re: Latest ODBC driver? / lo (blob) problem with fieldtype in Delphi

am 29.08.2006 14:49:00 von Stijn Vanroye

Thanks for the reply's dave. I'll give them a try.

About the blob/lo problem. I'm not sure if this problem is strictly a Delph=
i issue. It seems that in the backend for version 8.0 (maybe a bit before t=
hat, I'm not sure), the implementation for the lo-datatype changed. Now it'=
s a domain, before you had to create your own type named lo to have a field=
capable of storing (Binary) Large OBjects. Somehow the field is now recogn=
ized in Delphi as an IntegerField, and no longer as a field for large objec=
ts.=20

Just a thought of mine, but maybe the implementation in the backend changed=
, so the ODBC recognizes and passes the field as type integer, and no longe=
r as a lo/blob field.=20
Otherwise it's something in the implementation of the ODBC driver itself th=
at passes the field type as something that delphi understands as integer, m=
aybe the odbc really says it's an integerfield.

I'll try the 08.02 and see what that does.

Regards,

Stijn.

> > 3. The problems we are having are related to lo (BLOB)=20
> fields. Maybe=20
> > somebody can tell me if this is indeed related to the=20
> version of the=20
> > ODBC drivers.
> > I'm using Delphi in combination with ADO as a development=20
> enviroment.=20
> > I make my databaseconnection using a TADOConnection=20
> component. Next I=20
> > use a TADODataSet where I perform my database operations. I=20
> can't work=20
> > with fields of the type LO because in delphi the fieldtype=20
> needed for=20
> > this is a TBlobField, but the real problem is that all lo=20
> fields get=20
> > recognized as a TIntegerField. This means that I can't use=20
> any of the=20
> > operations for working with BLOB's... I don't know if it=20
> are Delphi's=20
> > ADO components who incorrectly recognize the fieldtype, or the ODBC=20
> > driver, or the backend. We have worked with Delphi, ODBC and BLOB=20
> > fields before without problems. We started using the 08.01 branch=20
> > along with the 8.x backend, since this one is the first one=20
> available=20
> > for Windows. It could be a change in the ODBC, or the=20
> backend, I don't=20
> > know. Any tips or clarification to put me on the right search path=20
> > would be welcome.
>=20
> I never used BLOBs (or Delphi) so cannot help with that I'm afraid.

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Re: Latest ODBC driver? / lo (blob) problem with fieldtype

am 30.08.2006 05:19:22 von Hiroshi Inoue

Stijn Vanroye wrote:
> Thanks for the reply's dave. I'll give them a try.
>
> About the blob/lo problem. I'm not sure if this problem is strictly a Delphi issue.
> It seems that in the backend for version 8.0 (maybe a bit before that, I'm not sure),
> the implementation for the lo-datatype changed. Now it's a domain, before you had to
> create your own type named lo to have a field capable of storing (Binary) Large OBjects.
> Somehow the field is now recognized in Delphi as an IntegerField, and no longer as a field for
large objects.
>
> Just a thought of mine, but maybe the implementation in the backend changed, so the ODBC
> recognizes and passes the field as type integer, and no longer as a lo/blob field.
> Otherwise it's something in the implementation of the ODBC driver itself that passes the
> field type as something that delphi understands as integer, maybe the odbc really says it's an
integerfield.
>
> I'll try the 08.02 and see what that does.

Please check 7.4+ Protocol option when you try lo domain type.

regards,
Hiroshi Inoue


---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Re: Latest ODBC driver? / lo (blob) problem with fieldtype

am 30.08.2006 10:59:55 von Stijn Vanroye

I have installed the 08.02.0002 snapshot after uninstalling the 08.01.
It looks like the problem is now solved. Not only do the Delphi ADO
components recognize my lo field as TBlobField, but it even works within
a transaction (which is nice because we had some problems there in the
past).

I did check the 7.4+ protocol option, which was enabled. If anyone needs
it or has a similar problem, I can post my connection settings (since
they seem to work), just let me know.

As I understood the 08.02 branch is going stable in the near future. So
before going into production with this I'll be anctiously waiting for
that to happen. Escpecially because Dave said the driver name will
change before the release.
Quote Dave Page: "Note that the driver name will probably change before
release, but will be set in stone once the first 08.02 stable release is
out."

Thanks for the reply's. I'm a happy developper again, I can finally
ditch the MSSQL Desktop backend ;)


Regards,

Stijn Vanroye.

Hiroshi Inoue wrote:
> Stijn Vanroye wrote:
>> Thanks for the reply's dave. I'll give them a try.
>>
>> About the blob/lo problem. I'm not sure if this problem is strictly a
>> Delphi issue.
> > It seems that in the backend for version 8.0 (maybe a bit before
> that, I'm not sure),
> > the implementation for the lo-datatype changed. Now it's a domain,
> before you had to
> > create your own type named lo to have a field capable of storing
> (Binary) Large OBjects.
> > Somehow the field is now recognized in Delphi as an IntegerField, and
> no longer as a field for large objects.
>>
>> Just a thought of mine, but maybe the implementation in the backend
>> changed, so the ODBC
> > recognizes and passes the field as type integer, and no longer as a
> lo/blob field.
>> Otherwise it's something in the implementation of the ODBC driver
>> itself that passes the
> > field type as something that delphi understands as integer, maybe the
> odbc really says it's an integerfield.
>>
>> I'll try the 08.02 and see what that does.
>
> Please check 7.4+ Protocol option when you try lo domain type.
>
> regards,
> Hiroshi Inoue
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Re: Latest ODBC driver? / lo (blob) problem with fieldtype

am 30.08.2006 11:10:13 von Dave Page

=20

> -----Original Message-----
> From: pgsql-odbc-owner@postgresql.org=20
> [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Stijn Vanroye
> Sent: 30 August 2006 10:00
> To: pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] Latest ODBC driver? / lo (blob) problem=20
> with fieldtype
>=20
> As I understood the 08.02 branch is going stable in the near=20
> future. So=20
> before going into production with this I'll be anctiously waiting for=20
> that to happen. Escpecially because Dave said the driver name will=20
> change before the release.
> Quote Dave Page: "Note that the driver name will probably=20
> change before=20
> release, but will be set in stone once the first 08.02 stable=20
> release is=20
> out."

Currently it's "PostgreSQL" - it will be "PostgreSQL Unicode" or
"PostgreSQL ANSI" depending on the build you use. The one you have is
Unicode unless you've replaced the DLL with one of Hiroshi's ANSI
builds.

You can hack your registry to set that up now if you feel confident (and
have taken backups etc etc :-) )

/D

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly