From paulditerwich@gmail.com Wed Nov 23 16:53:06 2005 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 A43B0DB9EA for ; Wed, 23 Nov 2005 12:53:06 -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 40570-05 for ; Wed, 23 Nov 2005 16:53:04 +0000 (GMT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.205]) by svr1.postgresql.org (Postfix) with ESMTP id 02397DB9B8 for ; Wed, 23 Nov 2005 12:53:02 -0400 (AST) Received: by zproxy.gmail.com with SMTP id m22so1342262nzf for ; Wed, 23 Nov 2005 08:53:00 -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:message-id; b=ir9QU1j2MdvSm6dCrZkLsDCuG4FsiFtJmMWtbx/3RfIg4Dbd3cs+GlPx7uxQDS5vxIuXShT2he3z/f0+nOkG4yZpqZz8whXoMCgnF+NgfhmlL5LwWfE0JVrqt91rTakiViPM8EydAfZEY/X8WsdM5++ex0Z666gKW5gECWYlRnM= Received: by 10.65.206.12 with SMTP id i12mr6087973qbq; Wed, 23 Nov 2005 08:53:00 -0800 (PST) Received: from pollux ( [80.56.3.88]) by mx.gmail.com with ESMTP id d12sm52767qbc.2005.11.23.08.52.59; Wed, 23 Nov 2005 08:53:00 -0800 (PST) From: "Leendert Paul Diterwich" To: Cc: "'Dave Page'" Subject: Postgresql odbc and Visual studio 2005 .net 2.0 Date: Wed, 23 Nov 2005 17:52:57 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0029_01C5F056.BE52AC70" X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcXwTlsTIAc+JCOJRWW+Wc0K/po4zg== Message-ID: <43849e6c.1d1c7d96.3d04.2108@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/198 X-Sequence-Number: 6434 This is a multi-part message in MIME format. ------=_NextPart_000_0029_01C5F056.BE52AC70 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 ------=_NextPart_000_0029_01C5F056.BE52AC70 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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

------=_NextPart_000_0029_01C5F056.BE52AC70-- From systemguards@gmail.com Wed Nov 23 17:10:56 2005 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 7CBDADBA2C for ; Wed, 23 Nov 2005 13:10:56 -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 43991-02 for ; Wed, 23 Nov 2005 17:10:54 +0000 (GMT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.204]) by svr1.postgresql.org (Postfix) with ESMTP id 2F1C5DBA1E for ; Wed, 23 Nov 2005 13:10:52 -0400 (AST) Received: by xproxy.gmail.com with SMTP id h27so1409586wxd for ; Wed, 23 Nov 2005 09:10:52 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uRGo5bIHlXIbAYhSUCnWKRVSWoOPtkxm7KiUtF57uHD5HIrWe5a/z4z/yf7k4E7LCUcp6ihxuS3/w6pv7oPs6eAs2ab3la2xXr39LvYEu/A7JlhcF2KH4mFOQDQKchf9iy+ncseIditkJCA4mq2jsjUUHGcwFnI62Ub34HutZA0= Received: by 10.64.153.6 with SMTP id a6mr6158810qbe; Wed, 23 Nov 2005 09:10:52 -0800 (PST) Received: by 10.65.180.2 with HTTP; Wed, 23 Nov 2005 09:10:52 -0800 (PST) Message-ID: Date: Wed, 23 Nov 2005 12:10:52 -0500 From: Jaime Casanova To: Leendert Paul Diterwich Subject: Re: Postgresql odbc and Visual studio 2005 .net 2.0 Cc: pgsql-odbc@postgresql.org, Dave Page In-Reply-To: <43849e6c.1d1c7d96.3d04.2108@mx.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <43849e6c.1d1c7d96.3d04.2108@mx.gmail.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.032 required=5 tests=[AWL=-0.300, RCVD_IN_BL_SPAMCOP_NET=1.332] X-Spam-Score: 1.032 X-Spam-Level: * X-Archive-Number: 200511/200 X-Sequence-Number: 6436 On 11/23/05, Leendert Paul Diterwich wrote: > > > Hi all, > > > > I just got word from MS and this is what they said about the problems som= e > 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 i= s > 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 ;) From dpage@vale-housing.co.uk Thu Nov 24 11:49:10 2005 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 7C52AD8BDE for ; Thu, 24 Nov 2005 07:49:10 -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 99996-02 for ; Thu, 24 Nov 2005 11:49:12 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from anchor-post-32.mail.demon.net (anchor-post-32.mail.demon.net [194.217.242.90]) by svr1.postgresql.org (Postfix) with ESMTP id 8E4A9D7282 for ; Thu, 24 Nov 2005 07:49:07 -0400 (AST) Received: from mailgate.vale-housing.co.uk ([194.217.48.34] helo=vale-housing.co.uk) by anchor-post-32.mail.demon.net with esmtp (Exim 4.42) id 1EfFbB-000Jr2-9Z for pgsql-odbc@postgresql.org; Thu, 24 Nov 2005 11:49:10 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C5F0ED.14EC61DF" Subject: Re: Postgresql odbc and Visual studio 2005 .net 2.0 Date: Thu, 24 Nov 2005 11:49:09 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Postgresql odbc and Visual studio 2005 .net 2.0 Thread-Index: AcXwTlsTIAc+JCOJRWW+Wc0K/po4zgAjlquw From: "Dave Page" To: "Leendert Paul Diterwich" , X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.324 required=5 tests=[AWL=0.323, HTML_MESSAGE=0.001] X-Spam-Score: 0.324 X-Spam-Level: X-Archive-Number: 200511/201 X-Sequence-Number: 6437 This is a multi-part message in MIME format. ------_=_NextPart_001_01C5F0ED.14EC61DF Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =20 ________________________________ From: Leendert Paul Diterwich [mailto:paulditerwich@gmail.com]=20 Sent: 23 November 2005 16:53 To: pgsql-odbc@postgresql.org Cc: Dave Page Subject: Postgresql odbc and Visual studio 2005 .net 2.0 =09 =09 Hi all, =20 I just got word from MS and this is what they said about the problems some of us are experiencing: =20 Hi Paul, =09 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. =09 There is no workaround for this issue, unfortunately. The only solution is for the ODBC driver to be fixed. =09 Thanks, Stephen Provine VS Data Development Team =20 Is it possible to change the behavior of the ODBC driver? =20 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. =20 I can email a couple of DLL's to test if you like? =20 Regards, Dave.=20 ------_=_NextPart_001_01C5F0ED.14EC61DF Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
 


From: Leendert Paul Diterwich=20 [mailto:paulditerwich@gmail.com]
Sent: 23 November 2005=20 16:53
To: pgsql-odbc@postgresql.org
Cc: Dave=20 Page
Subject: Postgresql odbc and Visual studio 2005 .net=20 2.0

Hi=20 all,

 

I just got word from MS = and this=20 is what they said about the problems some of us are=20 experiencing:

 

Hi Paul,

It = appears that=20 there are problems with this particular ODBC driver. It tells us that = the=20 default catalog is "\0\0" (taken from the IDbConnection.Database = property) so=20 we pass this as a catalog restriction to enumerate tables. This works, = however=20 the rows returned provide a catalog of NULL. This is inconsistent = behavior,=20 and when we then ask our cache to select objects with the catalog = restriction=20 "\0\0" it finds none because all objects in the cache have a NULL=20 catalog.

There is no workaround for this issue, unfortunately. = The only=20 solution is for the ODBC driver to be fixed.

Thanks,
Stephen = Provine
VS Data Development Team

 

Is it possible to change = the=20 behavior of the ODBC driver?

 

Certainly, if we can track down the actual = bug. The=20 problem is, afaik, there is no way to ask an ODBC driver what the = default=20 catalog is, so I'm not sure where they're getting this info from. If = they're=20 actually querying the /current/ catalog immediately following a connect, = then=20 they're using SQLGetConnectAttr, in which I have just commited a fix = which meant=20 that the wrong result length was returned. That could conceivably have = caused=20 this problem.

 

I can email a couple of DLL's to test if you=20 like?

 

Regards,=20 Dave. 

------_=_NextPart_001_01C5F0ED.14EC61DF-- From paulditerwich@gmail.com Thu Nov 24 13:37:17 2005 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-- From dpage@vale-housing.co.uk Thu Nov 24 13:39:51 2005 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 106FADBCD8 for ; Thu, 24 Nov 2005 09:39:51 -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 12510-10 for ; Thu, 24 Nov 2005 13:39:53 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by svr1.postgresql.org (Postfix) with ESMTP id C2AC1DBCC9 for ; Thu, 24 Nov 2005 09:39:47 -0400 (AST) Received: from mailgate.vale-housing.co.uk ([194.217.48.34] helo=vale-housing.co.uk) by anchor-post-34.mail.demon.net with esmtp (Exim 4.42) id 1EfHKI-000PwS-Db for pgsql-odbc@postgresql.org; Thu, 24 Nov 2005 13:39:50 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C5F0FC.8AE2E763" Subject: Re: Postgresql odbc and Visual studio 2005 .net 2.0 Date: Thu, 24 Nov 2005 13:39:49 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Postgresql odbc and Visual studio 2005 .net 2.0 Thread-Index: AcXwTlsTIAc+JCOJRWW+Wc0K/po4zgAjlquwAAZrLvAAAJf1sAAAnIOwAAAckwAAACfCAA== From: "Dave Page" To: "Leendert Paul Diterwich" Cc: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.319 required=5 tests=[AWL=0.318, HTML_MESSAGE=0.001] X-Spam-Score: 0.319 X-Spam-Level: X-Archive-Number: 200511/203 X-Sequence-Number: 6439 This is a multi-part message in MIME format. ------_=_NextPart_001_01C5F0FC.8AE2E763 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =20 ________________________________ From: Leendert Paul Diterwich [mailto:paulditerwich@gmail.com]=20 Sent: 24 November 2005 13:37 To: Dave Page Cc: pgsql-odbc@postgresql.org Subject: Postgresql odbc and Visual studio 2005 .net 2.0 =09 =09 Dave briljant! =20 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. =20 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)? =20 Paul =20 P.S. If you happen to come over to the Netherlands sometime soon I'll buy you a beer.=20 =20 :-) Thanks! =20 Regards, Dave. =20 =20 ------_=_NextPart_001_01C5F0FC.8AE2E763 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
 


From: Leendert Paul Diterwich=20 [mailto:paulditerwich@gmail.com]
Sent: 24 November 2005=20 13:37
To: Dave Page
Cc:=20 pgsql-odbc@postgresql.org
Subject: Postgresql odbc and = Visual studio=20 2005 .net 2.0

Dave=20 briljant!

 

The = dll’s enable VS=20 to autogenerate tables schema’s = etc...

I’ll = inform MS and=20 the people who might have similar problems and are following the = bugreport at=20 MS forums.

 

Yup, Tobias reported the same. Did you post = this=20 publically with Microsoft btw? Do you have a URL (I have an MSDN sub if = it's=20 required)?

 

Paul

 

P.S. If you = happen to=20 come over to the Netherlands sometime soon = I’ll buy=20 you a beer. 

 

:-)=20 Thanks!

 

Regards,=20 Dave.

 

 

------_=_NextPart_001_01C5F0FC.8AE2E763-- From dpage@vale-housing.co.uk Thu Nov 24 13:40:00 2005 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 B2A0ADB0AC for ; Thu, 24 Nov 2005 09:40:00 -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 13341-07-3 for ; Thu, 24 Nov 2005 13:40:00 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from anchor-post-36.mail.demon.net (anchor-post-36.mail.demon.net [194.217.242.86]) by svr1.postgresql.org (Postfix) with ESMTP id 84A3DDBC96 for ; Thu, 24 Nov 2005 09:39:53 -0400 (AST) Received: from mailgate.vale-housing.co.uk ([194.217.48.34] helo=vale-housing.co.uk) by anchor-post-36.mail.demon.net with esmtp (Exim 4.42) id 1EfHKO-0000pQ-Lx for pgsql-odbc@postgresql.org; Thu, 24 Nov 2005 13:39:56 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C5F0FC.8EC2C503" Subject: Re: Postgresql odbc and Visual studio 2005 .net 2.0 Date: Thu, 24 Nov 2005 13:39:56 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ODBC] Postgresql odbc and Visual studio 2005 .net 2.0 Thread-Index: AcXwTlsTIAc+JCOJRWW+Wc0K/po4zgAjlquwAAfX8KA= From: "Dave Page" To: "Leendert Paul Diterwich" , X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.316 required=5 tests=[AWL=0.315, HTML_MESSAGE=0.001] X-Spam-Score: 0.316 X-Spam-Level: X-Archive-Number: 200511/204 X-Sequence-Number: 6440 This is a multi-part message in MIME format. ------_=_NextPart_001_01C5F0FC.8EC2C503 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =20 ________________________________ 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 =09 =09 =20 ________________________________ From: Leendert Paul Diterwich [mailto:paulditerwich@gmail.com]=20 Sent: 23 November 2005 16:53 To: pgsql-odbc@postgresql.org Cc: Dave Page Subject: Postgresql odbc and Visual studio 2005 .net 2.0 =09 =09 Hi all, =20 I just got word from MS and this is what they said about the problems some of us are experiencing: =20 Hi Paul, =09 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. =09 There is no workaround for this issue, unfortunately. The only solution is for the ODBC driver to be fixed. =09 Thanks, Stephen Provine VS Data Development Team =20 Is it possible to change the behavior of the ODBC driver? =20 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. =20 I can email a couple of DLL's to test if you like? =20 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. =20 Regards, Dave. ------_=_NextPart_001_01C5F0FC.8EC2C503 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
 


From: = pgsql-odbc-owner@postgresql.org=20 [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Dave=20 Page
Sent: 24 November 2005 11:49
To: Leendert = Paul=20 Diterwich; pgsql-odbc@postgresql.org
Subject: Re: [ODBC] = Postgresql=20 odbc and Visual studio 2005 .net 2.0

 


From: Leendert Paul Diterwich=20 [mailto:paulditerwich@gmail.com]
Sent: 23 November 2005=20 16:53
To: pgsql-odbc@postgresql.org
Cc: Dave=20 Page
Subject: Postgresql odbc and Visual studio 2005 .net=20 2.0

Hi=20 all,

 

I just got word from = MS and this=20 is what they said about the problems some of us are=20 experiencing:

 

Hi Paul,

It = appears=20 that there are problems with this particular ODBC driver. It tells = us that=20 the default catalog is "\0\0" (taken from the IDbConnection.Database = property) so we pass this as a catalog restriction to enumerate = tables. This=20 works, however the rows returned provide a catalog of NULL. This is=20 inconsistent behavior, and when we then ask our cache to select = objects with=20 the catalog restriction "\0\0" it finds none because all objects in = the=20 cache have a NULL catalog.

There is no workaround for this = issue,=20 unfortunately. The only solution is for the ODBC driver to be=20 fixed.

Thanks,
Stephen Provine
VS Data Development=20 Team

 

Is it possible to = change the=20 behavior of the ODBC driver?

 

Certainly, if we can track down the actual = bug. The=20 problem is, afaik, there is no way to ask an ODBC driver what the = default=20 catalog is, so I'm not sure where they're getting this info from. If = they're=20 actually querying the /current/ catalog immediately following a = connect, then=20 they're using SQLGetConnectAttr, in which I have just commited a fix = which=20 meant that the wrong result length was returned. That could = conceivably have=20 caused this problem.

 

I can email a couple of DLL's to test if = you=20 like?

 

For=20 the benefit of the list, I'm told this fix corrects the problem with = VS2K5. It's=20 been committed to CVS and will be in the next=20 release.

 

Regards, = Dave.

------_=_NextPart_001_01C5F0FC.8EC2C503--