X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D5B73DBC20 for ; Thu, 24 Nov 2005 09:37:17 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 12705-10 for ; Thu, 24 Nov 2005 13:37:19 +0000 (GMT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.196]) by svr1.postgresql.org (Postfix) with ESMTP id C249BDBBB6 for ; Thu, 24 Nov 2005 09:37:13 -0400 (AST) Received: by wproxy.gmail.com with SMTP id 36so1558419wra for ; Thu, 24 Nov 2005 05:37:17 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:cc:subject:date:mime-version:content-type:x-mailer:x-mimeole:thread-index:in-reply-to:message-id; b=Nop0LG3Exesn9zvv634qflgc9drPuj7XePF13bo+nCTBJxmiLVU9JSg9U3jWtOexGC0KIUTsIgCjqlfgLnouDQbmYl6Ow7O2+IY6Kb3RXPgt4dNDAWeeFhO6AFrXpqLYjwyDBYwktIHZLRNNfaOwJqNSalOf/AAAA5TGXRuQAlM= Received: by 10.65.61.11 with SMTP id o11mr198854qbk; Thu, 24 Nov 2005 05:37:17 -0800 (PST) Received: from pollux ( [80.56.3.88]) by mx.gmail.com with ESMTP id f13sm952606qba.2005.11.24.05.37.14; Thu, 24 Nov 2005 05:37:17 -0800 (PST) From: "Leendert Paul Diterwich" To: "'Dave Page'" Cc: Subject: Postgresql odbc and Visual studio 2005 .net 2.0 Date: Thu, 24 Nov 2005 14:37:13 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0024_01C5F104.914134A0" X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcXwTlsTIAc+JCOJRWW+Wc0K/po4zgAjlquwAAZrLvAAAJf1sAAAnIOwAAAckwA= In-Reply-To: Message-ID: <4385c20c.65a8c9c6.29a3.7ceb@mx.gmail.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.001 required=5 tests=[HTML_MESSAGE=0.001] X-Spam-Score: 0.001 X-Spam-Level: X-Archive-Number: 200511/202 X-Sequence-Number: 6438 This is a multi-part message in MIME format. ------=_NextPart_000_0024_01C5F104.914134A0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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. ------=_NextPart_000_0024_01C5F104.914134A0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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.

------=_NextPart_000_0024_01C5F104.914134A0--