pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedPostgresql odbc and Visual studio 2005 .net 2.0
6+ messages / 3 participants
[nested] [flat]
* Postgresql odbc and Visual studio 2005 .net 2.0
@ 2005-11-23 16:52 Leendert Paul Diterwich <paulditerwich@gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Leendert Paul Diterwich @ 2005-11-23 16:52 UTC (permalink / raw)
To: pgsql-odbc; +Cc: 'Dave Page' <dpage@vale-housing.co.uk>
Hi all,
I just got word from MS and this is what they said about the problems some
of us are experiencing:
Hi Paul,
It appears that there are problems with this particular ODBC driver. It
tells us that the default catalog is "\0\0" (taken from the
IDbConnection.Database property) so we pass this as a catalog restriction to
enumerate tables. This works, however the rows returned provide a catalog of
NULL. This is inconsistent behavior, and when we then ask our cache to
select objects with the catalog restriction "\0\0" it finds none because all
objects in the cache have a NULL catalog.
There is no workaround for this issue, unfortunately. The only solution is
for the ODBC driver to be fixed.
Thanks,
Stephen Provine
VS Data Development Team
Is it possible to change the behavior of the ODBC driver?
Kind Regards,
Paul
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Postgresql odbc and Visual studio 2005 .net 2.0
@ 2005-11-23 17:10 Jaime Casanova <systemguards@gmail.com>
parent: Leendert Paul Diterwich <paulditerwich@gmail.com>
0 siblings, 0 replies; 6+ messages in thread
From: Jaime Casanova @ 2005-11-23 17:10 UTC (permalink / raw)
To: Leendert Paul Diterwich <paulditerwich@gmail.com>; +Cc: pgsql-odbc; Dave Page <dpage@vale-housing.co.uk>
On 11/23/05, Leendert Paul Diterwich <paulditerwich@gmail.com> wrote:
>
>
> Hi all,
>
>
>
> I just got word from MS and this is what they said about the problems some
> of us are experiencing:
>
>
>
> Hi Paul,
>
> It appears that there are problems with this particular ODBC driver. It
> tells us that the default catalog is "\0\0" (taken from the
> IDbConnection.Database property) so we pass this as a catalog restriction to
> enumerate tables. This works, however the rows returned provide a catalog of
> NULL. This is inconsistent behavior, and when we then ask our cache to
> select objects with the catalog restriction "\0\0" it finds none because all
> objects in the cache have a NULL catalog.
>
> There is no workaround for this issue, unfortunately. The only solution is
> for the ODBC driver to be fixed.
>
> Thanks,
> Stephen Provine
> VS Data Development Team
>
>
>
> Is it possible to change the behavior of the ODBC driver?
>
>
>
> Kind Regards,
>
>
>
> Paul
about your problem with the odbc... sounds weird i used the vs.net
(not 2005 i don't remember de version, it was a year ago or maybe two
:) and i use the odbc and odbc .net data provider without problems...
maybe a bug new in vs.net 2005 or maybe a new "behaviour", who
knows...
have you tried the npgsql (.Net Data Provider for Pgsql), you can find
it in pgfoundry.org
--
Atentamente,
Jaime Casanova
(DBA: DataBase Aniquilator ;)
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Postgresql odbc and Visual studio 2005 .net 2.0
@ 2005-11-24 11:49 Dave Page <dpage@vale-housing.co.uk>
0 siblings, 0 replies; 6+ messages in thread
From: Dave Page @ 2005-11-24 11:49 UTC (permalink / raw)
To: Leendert Paul Diterwich <paulditerwich@gmail.com>; pgsql-odbc
________________________________
From: Leendert Paul Diterwich [mailto:paulditerwich@gmail.com]
Sent: 23 November 2005 16:53
To: pgsql-odbc@postgresql.org
Cc: Dave Page
Subject: Postgresql odbc and Visual studio 2005 .net 2.0
Hi all,
I just got word from MS and this is what they said about the
problems some of us are experiencing:
Hi Paul,
It appears that there are problems with this particular ODBC
driver. It tells us that the default catalog is "\0\0" (taken from the
IDbConnection.Database property) so we pass this as a catalog
restriction to enumerate tables. This works, however the rows returned
provide a catalog of NULL. This is inconsistent behavior, and when we
then ask our cache to select objects with the catalog restriction "\0\0"
it finds none because all objects in the cache have a NULL catalog.
There is no workaround for this issue, unfortunately. The only
solution is for the ODBC driver to be fixed.
Thanks,
Stephen Provine
VS Data Development Team
Is it possible to change the behavior of the ODBC driver?
Certainly, if we can track down the actual bug. The problem is, afaik,
there is no way to ask an ODBC driver what the default catalog is, so
I'm not sure where they're getting this info from. If they're actually
querying the /current/ catalog immediately following a connect, then
they're using SQLGetConnectAttr, in which I have just commited a fix
which meant that the wrong result length was returned. That could
conceivably have caused this problem.
I can email a couple of DLL's to test if you like?
Regards, Dave.
^ permalink raw reply [nested|flat] 6+ messages in thread
* Postgresql odbc and Visual studio 2005 .net 2.0
@ 2005-11-24 13:37 Leendert Paul Diterwich <paulditerwich@gmail.com>
0 siblings, 0 replies; 6+ messages in thread
From: Leendert Paul Diterwich @ 2005-11-24 13:37 UTC (permalink / raw)
To: 'Dave Page' <dpage@vale-housing.co.uk>; +Cc: pgsql-odbc
Dave briljant!
The dll's enable VS to autogenerate tables schema's etc...
I'll inform MS and the people who might have similar problems and are
following the bugreport at MS forums.
Cheers,
Paul
P.S. If you happen to come over to the Netherlands sometime soon I'll buy
you a beer.
_____
Van: Dave Page [mailto:dpage@vale-housing.co.uk]
Verzonden: donderdag 24 november 2005 14:31
Aan: Leendert Paul Diterwich
Onderwerp: FW: Postgresql odbc and Visual studio 2005 .net 2.0
OK, trying again (Google bounced it). You'll need to rename the attachment
to dlls.zip.
Regards, Dave
_____
From: Dave Page
Sent: 24 November 2005 13:13
To: 'Leendert Paul Diterwich'
Subject: RE: Postgresql odbc and Visual studio 2005 .net 2.0
Hi Paul
The update is attached. Please copy the enclosed DLLs over your existing
copies.
Please let me know if it fixes the problem.
Regards, Dave
_____
From: Leendert Paul Diterwich [mailto:paulditerwich@gmail.com]
Sent: 24 November 2005 12:57
To: Dave Page
Subject: RE: Postgresql odbc and Visual studio 2005 .net 2.0
If its no problem for you, I would appreciate that very much!
Regards,
Paul
_____
Van: Dave Page [mailto:dpage@vale-housing.co.uk]
Verzonden: donderdag 24 november 2005 12:49
Aan: Leendert Paul Diterwich; pgsql-odbc@postgresql.org
Onderwerp: RE: Postgresql odbc and Visual studio 2005 .net 2.0
_____
From: Leendert Paul Diterwich [mailto:paulditerwich@gmail.com]
Sent: 23 November 2005 16:53
To: pgsql-odbc@postgresql.org
Cc: Dave Page
Subject: Postgresql odbc and Visual studio 2005 .net 2.0
Hi all,
I just got word from MS and this is what they said about the problems some
of us are experiencing:
Hi Paul,
It appears that there are problems with this particular ODBC driver. It
tells us that the default catalog is "\0\0" (taken from the
IDbConnection.Database property) so we pass this as a catalog restriction to
enumerate tables. This works, however the rows returned provide a catalog of
NULL. This is inconsistent behavior, and when we then ask our cache to
select objects with the catalog restriction "\0\0" it finds none because all
objects in the cache have a NULL catalog.
There is no workaround for this issue, unfortunately. The only solution is
for the ODBC driver to be fixed.
Thanks,
Stephen Provine
VS Data Development Team
Is it possible to change the behavior of the ODBC driver?
Certainly, if we can track down the actual bug. The problem is, afaik, there
is no way to ask an ODBC driver what the default catalog is, so I'm not sure
where they're getting this info from. If they're actually querying the
/current/ catalog immediately following a connect, then they're using
SQLGetConnectAttr, in which I have just commited a fix which meant that the
wrong result length was returned. That could conceivably have caused this
problem.
I can email a couple of DLL's to test if you like?
Regards, Dave.
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Postgresql odbc and Visual studio 2005 .net 2.0
@ 2005-11-24 13:39 Dave Page <dpage@vale-housing.co.uk>
0 siblings, 0 replies; 6+ messages in thread
From: Dave Page @ 2005-11-24 13:39 UTC (permalink / raw)
To: Leendert Paul Diterwich <paulditerwich@gmail.com>; +Cc: pgsql-odbc
________________________________
From: Leendert Paul Diterwich [mailto:paulditerwich@gmail.com]
Sent: 24 November 2005 13:37
To: Dave Page
Cc: pgsql-odbc@postgresql.org
Subject: Postgresql odbc and Visual studio 2005 .net 2.0
Dave briljant!
The dll's enable VS to autogenerate tables schema's etc...
I'll inform MS and the people who might have similar problems
and are following the bugreport at MS forums.
Yup, Tobias reported the same. Did you post this publically with
Microsoft btw? Do you have a URL (I have an MSDN sub if it's required)?
Paul
P.S. If you happen to come over to the Netherlands sometime soon
I'll buy you a beer.
:-) Thanks!
Regards, Dave.
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Postgresql odbc and Visual studio 2005 .net 2.0
@ 2005-11-24 13:39 Dave Page <dpage@vale-housing.co.uk>
0 siblings, 0 replies; 6+ messages in thread
From: Dave Page @ 2005-11-24 13:39 UTC (permalink / raw)
To: Leendert Paul Diterwich <paulditerwich@gmail.com>; pgsql-odbc
________________________________
From: pgsql-odbc-owner@postgresql.org
[mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Dave Page
Sent: 24 November 2005 11:49
To: Leendert Paul Diterwich; pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Postgresql odbc and Visual studio 2005 .net
2.0
________________________________
From: Leendert Paul Diterwich
[mailto:paulditerwich@gmail.com]
Sent: 23 November 2005 16:53
To: pgsql-odbc@postgresql.org
Cc: Dave Page
Subject: Postgresql odbc and Visual studio 2005 .net 2.0
Hi all,
I just got word from MS and this is what they said about
the problems some of us are experiencing:
Hi Paul,
It appears that there are problems with this particular
ODBC driver. It tells us that the default catalog is "\0\0" (taken from
the IDbConnection.Database property) so we pass this as a catalog
restriction to enumerate tables. This works, however the rows returned
provide a catalog of NULL. This is inconsistent behavior, and when we
then ask our cache to select objects with the catalog restriction "\0\0"
it finds none because all objects in the cache have a NULL catalog.
There is no workaround for this issue, unfortunately.
The only solution is for the ODBC driver to be fixed.
Thanks,
Stephen Provine
VS Data Development Team
Is it possible to change the behavior of the ODBC
driver?
Certainly, if we can track down the actual bug. The problem is,
afaik, there is no way to ask an ODBC driver what the default catalog
is, so I'm not sure where they're getting this info from. If they're
actually querying the /current/ catalog immediately following a connect,
then they're using SQLGetConnectAttr, in which I have just commited a
fix which meant that the wrong result length was returned. That could
conceivably have caused this problem.
I can email a couple of DLL's to test if you like?
For the benefit of the list, I'm told this fix corrects the problem with
VS2K5. It's been committed to CVS and will be in the next release.
Regards, Dave.
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2005-11-24 13:39 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-11-23 16:52 Postgresql odbc and Visual studio 2005 .net 2.0 Leendert Paul Diterwich <paulditerwich@gmail.com>
2005-11-23 17:10 ` Jaime Casanova <systemguards@gmail.com>
2005-11-24 11:49 Re: Postgresql odbc and Visual studio 2005 .net 2.0 Dave Page <dpage@vale-housing.co.uk>
2005-11-24 13:37 Postgresql odbc and Visual studio 2005 .net 2.0 Leendert Paul Diterwich <paulditerwich@gmail.com>
2005-11-24 13:39 Re: Postgresql odbc and Visual studio 2005 .net 2.0 Dave Page <dpage@vale-housing.co.uk>
2005-11-24 13:39 Re: Postgresql odbc and Visual studio 2005 .net 2.0 Dave Page <dpage@vale-housing.co.uk>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox