pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Re: Patch for Libpq enabled psqlodbc
9+ messages / 4 participants
[nested] [flat]

* Re: Patch for Libpq enabled psqlodbc
@ 2005-07-12 09:03 Dave Page <dpage@vale-housing.co.uk>
  2005-07-12 23:54 ` Re: Patch for Libpq enabled psqlodbc Joel Fradkin <jfradkin@wazagua.com>
  0 siblings, 1 reply; 9+ messages in thread

From: Dave Page @ 2005-07-12 09:03 UTC (permalink / raw)
  To: Anoop Kumar <anoopk@pervasive-postgres.com>; pgsql-odbc

Hi Anoop,
 
Wow, that's some size of patch (and great to see - well done to you and
your colleagues at Pervasive)! I think the best bet is for me to produce
a test build that we can then distribute for people on the list to test.
I'll try to do that today or tomorrow.
 
Are you ready for the inevitable flood of bug reports? :-)
 
Regards, Dave.

________________________________

	From: Anoop Kumar [mailto:anoopk@pervasive-postgres.com] 
	Sent: 12 July 2005 09:44
	To: pgsql-odbc@postgresql.org
	Cc: Dave Page
	Subject: Patch for Libpq enabled psqlodbc
	
	
	Hi,
	 
	Here is the patch for the libpq enabled psqlodbc. Please provide
your suggestions and feedbacks on this to help improving the performance
and rectifying other issues. 
	 
	It is just the first step towards a more efficient and stable
psqlodbc, and needs a lot of improvements which heavily depends on the
contributions from the community.
	 
	libpqconnection.h, attached as a separate file should be added
to the source folder.
	 
	Thanks and Regards
	 
	Anoop Kumar
	 

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Patch for Libpq enabled psqlodbc
  2005-07-12 09:03 Re: Patch for Libpq enabled psqlodbc Dave Page <dpage@vale-housing.co.uk>
@ 2005-07-12 23:54 ` Joel Fradkin <jfradkin@wazagua.com>
  0 siblings, 0 replies; 9+ messages in thread

From: Joel Fradkin @ 2005-07-12 23:54 UTC (permalink / raw)
  To: 'Dave Page' <dpage@vale-housing.co.uk>; 'Anoop Kumar' <anoopk@pervasive-postgres.com>; pgsql-odbc

Not sure what a regression test encompasses (sorry for being ignorant), but
if I can help let me know.

I program in several languages, so not sure if this is a set of SQL
statements, or something in code.

 

Joel Fradkin

 

Wazagua, Inc.
2520 Trailmate Dr
Sarasota, Florida 34243
Tel.  941-753-7111 ext 305

 

jfradkin@wazagua.com
www.wazagua.com
Powered by Wazagua
Providing you with the latest Web-based technology & advanced tools.
C 2004. WAZAGUA, Inc. All rights reserved. WAZAGUA, Inc
 This email message is for the use of the intended recipient(s) and may
contain confidential and privileged information.  Any unauthorized review,
use, disclosure or distribution is prohibited.  If you are not the intended
recipient, please contact the sender by reply email and delete and destroy
all copies of the original message, including attachments.

 


 

-----Original Message-----
From: pgsql-odbc-owner@postgresql.org
[mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Dave Page
Sent: Tuesday, July 12, 2005 5:03 AM
To: Anoop Kumar; pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Patch for Libpq enabled psqlodbc

 

Hi Anoop,

 

Wow, that's some size of patch (and great to see - well done to you and your
colleagues at Pervasive)! I think the best bet is for me to produce a test
build that we can then distribute for people on the list to test. I'll try
to do that today or tomorrow.

 

Are you ready for the inevitable flood of bug reports? :-)

 

Regards, Dave.

 


  _____  


From: Anoop Kumar [mailto:anoopk@pervasive-postgres.com] 
Sent: 12 July 2005 09:44
To: pgsql-odbc@postgresql.org
Cc: Dave Page
Subject: Patch for Libpq enabled psqlodbc

Hi,

 

Here is the patch for the libpq enabled psqlodbc. Please provide your
suggestions and feedbacks on this to help improving the performance and
rectifying other issues. 

 

It is just the first step towards a more efficient and stable psqlodbc, and
needs a lot of improvements which heavily depends on the contributions from
the community.

 

libpqconnection.h, attached as a separate file should be added to the source
folder.

 

Thanks and Regards

 

Anoop Kumar

 

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Patch for Libpq enabled psqlodbc
@ 2005-07-12 10:27 Dave Page <dpage@vale-housing.co.uk>
  0 siblings, 0 replies; 9+ messages in thread

From: Dave Page @ 2005-07-12 10:27 UTC (permalink / raw)
  To: Anoop Kumar <anoopk@pervasive-postgres.com>; pgsql-odbc

OK, replying to myself here :-)
 
Anoop: I've attached a new Makefile for Win32. This allows the user to
specify the PostgreSQL lib as well as include directories, and defaults
them both the the standard locations used by pgInstaller which should
apply to most users. I've not committed your patches yet, so for ease of
future application, if you can merge any fixes/updates back into your
code for the time being. Once everything looks like it's going well
(hopefully in the next few days), we can commit and work from CVS from
then on.
 
The other problem I spotted almost instantly that is a show stopper for
me before I even think about a test release, is that null dates are
coming through as todays date. For example, in one of my apps, a
non-null scrap_date column indicates that a piece of equipment has been
scrapped. Currently all our kit appears to have been scrapped today or
earlier! I haven't looked into why this is happening as I'm quite busy
ATM, but I'm guessing it won't be too hard to track down.
 
As an aside to the other list members: this update is very large and
most definately requires extensive testing, so when the demo is ready,
please download it and hammer it as much as possible. If anyone has some
spare time and wants to work on a regression test suite, that would be
of immense value to the project.
 
Regards, Dave


________________________________

	From: Dave Page 
	Sent: 12 July 2005 10:03
	To: 'Anoop Kumar'; pgsql-odbc@postgresql.org
	Subject: RE: Patch for Libpq enabled psqlodbc
	
	
	Hi Anoop,
	 
	Wow, that's some size of patch (and great to see - well done to
you and your colleagues at Pervasive)! I think the best bet is for me to
produce a test build that we can then distribute for people on the list
to test. I'll try to do that today or tomorrow.
	 
	Are you ready for the inevitable flood of bug reports? :-)
	 
	Regards, Dave.

________________________________

		From: Anoop Kumar [mailto:anoopk@pervasive-postgres.com]

		Sent: 12 July 2005 09:44
		To: pgsql-odbc@postgresql.org
		Cc: Dave Page
		Subject: Patch for Libpq enabled psqlodbc
		
		
		Hi,
		 
		Here is the patch for the libpq enabled psqlodbc. Please
provide your suggestions and feedbacks on this to help improving the
performance and rectifying other issues. 
		 
		It is just the first step towards a more efficient and
stable psqlodbc, and needs a lot of improvements which heavily depends
on the contributions from the community.
		 
		libpqconnection.h, attached as a separate file should be
added to the source folder.
		 
		Thanks and Regards
		 
		Anoop Kumar
		 

Attachments:

  win32.mak (application/octet-stream, 14.8K) download

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Patch for Libpq enabled psqlodbc
@ 2005-07-13 07:36 Dave Page <dpage@vale-housing.co.uk>
  0 siblings, 0 replies; 9+ messages in thread

From: Dave Page @ 2005-07-13 07:36 UTC (permalink / raw)
  To: Joel Fradkin <jfradkin@wazagua.com>; Anoop Kumar <anoopk@pervasive-postgres.com>; pgsql-odbc

 


________________________________

	From: Joel Fradkin [mailto:jfradkin@wazagua.com] 
	Sent: 13 July 2005 00:55
	To: Dave Page; 'Anoop Kumar'; pgsql-odbc@postgresql.org
	Subject: RE: [ODBC] Patch for Libpq enabled psqlodbc
	
	

	Not sure what a regression test encompasses (sorry for being
ignorant), but if I can help let me know.

	I program in several languages, so not sure if this is a set of
SQL statements, or something in code.

	 

Essentially it would be a program in C (so it would run on Windows and
*nix) designed to run an automated test of (eventually) every function
of the driver. Ideally, tests should be outside the program and in an
easily edittable format (and require little or no C code). For example,
a very basic generic test might involve running an SQL script to create
a table and insert some rows, and then running a second script to
examine that data. The results are then compared against a file of
'expected' results and discrepencies reported.

 

The difficult bit is writing the system to make it nice and easy to add
tests. If you want to look at this further, it might be worth looking at
the Npgsql equivalent at
http://gborg.postgresql.org/project/npgsql/cvs/cvs.php/Npgsql/src/testsu
ite/noninteractive for inspiration.

 

Regards, Dave. 

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Patch for Libpq enabled psqlodbc
@ 2005-07-13 10:38 Anoop Kumar <anoopk@pervasive-postgres.com>
  0 siblings, 0 replies; 9+ messages in thread

From: Anoop Kumar @ 2005-07-13 10:38 UTC (permalink / raw)
  To: Dave Page <dpage@vale-housing.co.uk>; pgsql-odbc

Hi Dave,
 
I've added your Makefile to my sources, it eases things a lot :-). 
 
I figured out the cause of the problem you encountered.  In libpq
enabled version, I was using PQgetvalue method for getting the value
from the PGresult class. PQgetvalue returns an empty string, instead of
a null pointer, for a NULL field. So, the date value is converted to the
current date. I have just made a workaround for this (and trying for a
better one) and will send you the patch soon.
 
So glad that the first bug is reported by you, Dave!
 
Regards
 
Anoop
 
 
 
 
-----Original Message-----
From: pgsql-odbc-owner@postgresql.org
[mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Dave Page
Sent: Tuesday, July 12, 2005 3:57 PM
To: Anoop Kumar; pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Patch for Libpq enabled psqlodbc
 
OK, replying to myself here :-)
 
Anoop: I've attached a new Makefile for Win32. This allows the user to
specify the PostgreSQL lib as well as include directories, and defaults
them both the the standard locations used by pgInstaller which should
apply to most users. I've not committed your patches yet, so for ease of
future application, if you can merge any fixes/updates back into your
code for the time being. Once everything looks like it's going well
(hopefully in the next few days), we can commit and work from CVS from
then on.
 
The other problem I spotted almost instantly that is a show stopper for
me before I even think about a test release, is that null dates are
coming through as todays date. For example, in one of my apps, a
non-null scrap_date column indicates that a piece of equipment has been
scrapped. Currently all our kit appears to have been scrapped today or
earlier! I haven't looked into why this is happening as I'm quite busy
ATM, but I'm guessing it won't be too hard to track down.
 
As an aside to the other list members: this update is very large and
most definately requires extensive testing, so when the demo is ready,
please download it and hammer it as much as possible. If anyone has some
spare time and wants to work on a regression test suite, that would be
of immense value to the project.
 
Regards, Dave
	 
	
  _____  

	From: Dave Page 
	Sent: 12 July 2005 10:03
	To: 'Anoop Kumar'; pgsql-odbc@postgresql.org
	Subject: RE: Patch for Libpq enabled psqlodbc
	Hi Anoop,
	 
	Wow, that's some size of patch (and great to see - well done to
you and your colleagues at Pervasive)! I think the best bet is for me to
produce a test build that we can then distribute for people on the list
to test. I'll try to do that today or tomorrow.
	 
	Are you ready for the inevitable flood of bug reports? :-)
	 
	Regards, Dave.
		 
		
  _____  

		From: Anoop Kumar [mailto:anoopk@pervasive-postgres.com]

		Sent: 12 July 2005 09:44
		To: pgsql-odbc@postgresql.org
		Cc: Dave Page
		Subject: Patch for Libpq enabled psqlodbc
		Hi,
		 
		Here is the patch for the libpq enabled psqlodbc. Please
provide your suggestions and feedbacks on this to help improving the
performance and rectifying other issues. 
		 
		It is just the first step towards a more efficient and
stable psqlodbc, and needs a lot of improvements which heavily depends
on the contributions from the community.
		 
		libpqconnection.h, attached as a separate file should be
added to the source folder.
		 
		Thanks and Regards
		 
		Anoop Kumar
		 

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Patch for Libpq enabled psqlodbc
@ 2005-07-13 10:49 Dave Page <dpage@vale-housing.co.uk>
  0 siblings, 0 replies; 9+ messages in thread

From: Dave Page @ 2005-07-13 10:49 UTC (permalink / raw)
  To: Anoop Kumar <anoopk@pervasive-postgres.com>; pgsql-odbc

 

________________________________

	From: Anoop Kumar [mailto:anoopk@pervasive-postgres.com] 
	Sent: 13 July 2005 11:38
	To: Dave Page; pgsql-odbc@postgresql.org
	Subject: RE: [ODBC] Patch for Libpq enabled psqlodbc
	
	
	Hi Dave,
	 
	I've added your Makefile to my sources, it eases things a lot
:-). 
	 
Thanks - I prefer to be able to compile out of the box with standard
installs.
	 
	I figured out the cause of the problem you encountered.  In
libpq enabled version, I was using PQgetvalue method for getting the
value from the  
	 PGresult class. PQgetvalue returns an empty string, instead of
a null pointer, for a NULL field. So, the date value is converted to the
current date.  
	 I have just made a workaround for this (and trying for a better
one) and will send you the patch soon.
	 
 Great, looking forward to it. 
	 
	So glad that the first bug is reported by you, Dave!
	 
 :-)
 
Regards, Dave. 

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Patch for Libpq enabled psqlodbc
@ 2005-07-13 12:53 Merlin Moncure <merlin.moncure@rcsonline.com>
  0 siblings, 0 replies; 9+ messages in thread

From: Merlin Moncure @ 2005-07-13 12:53 UTC (permalink / raw)
  To: Dave Page <dpage@vale-housing.co.uk>; +Cc: pgsql-odbc

Is there a public location for the pgsql-odbc sources?  I looked on the
odbc site and couldn't find them.  If you are not ready to publish them
yet, a zipfile for some early testing would be great ;).

Merllin



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Patch for Libpq enabled psqlodbc
@ 2005-07-13 13:40 Merlin Moncure <merlin.moncure@rcsonline.com>
  0 siblings, 0 replies; 9+ messages in thread

From: Merlin Moncure @ 2005-07-13 13:40 UTC (permalink / raw)
  To: Dave Page <dpage@vale-housing.co.uk>; +Cc: pgsql-odbc

Trying to compile...where is libpqconnection.h?
Merlin


> -----Original Message-----
> From: Dave Page [mailto:dpage@vale-housing.co.uk]
> Sent: Wednesday, July 13, 2005 9:19 AM
> To: Merlin Moncure
> Cc: pgsql-odbc@postgresql.org
> Subject: RE: [ODBC] Patch for Libpq enabled psqlodbc
> 
> 
> 
> > -----Original Message-----
> > From: Merlin Moncure [mailto:merlin.moncure@rcsonline.com]
> > Sent: 13 July 2005 13:53
> > To: Dave Page
> > Cc: pgsql-odbc@postgresql.org
> > Subject: RE: [ODBC] Patch for Libpq enabled psqlodbc
> >
> > Is there a public location for the pgsql-odbc sources?  I
> > looked on the
> > odbc site and couldn't find them.  If you are not ready to
> > publish them
> > yet, a zipfile for some early testing would be great ;).
> 
> The CVS is at
http://gborg.postgresql.org/project/psqlodbc/cvs/cvs.php.
> The latest version of the patch from Anoop (with date fix - currently
> untested by me) is attached.
> 
> Regards, Dave.



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Patch for Libpq enabled psqlodbc
@ 2005-07-13 14:25 Dave Page <dpage@vale-housing.co.uk>
  0 siblings, 0 replies; 9+ messages in thread

From: Dave Page @ 2005-07-13 14:25 UTC (permalink / raw)
  To: Merlin Moncure <merlin.moncure@rcsonline.com>; +Cc: pgsql-odbc

 

> -----Original Message-----
> From: Merlin Moncure [mailto:merlin.moncure@rcsonline.com] 
> Sent: 13 July 2005 14:40
> To: Dave Page
> Cc: pgsql-odbc@postgresql.org
> Subject: RE: [ODBC] Patch for Libpq enabled psqlodbc
> 
> Trying to compile...where is libpqconnection.h?
> Merlin

Ack - sorry. Forgot that one.

I've just branched CVS and committed it all anyway - give me 5 minutes
and I'll sned details to the list.

/D

Attachments:

  libpqconnection.h (application/octet-stream, 14.0K) download

^ permalink  raw  reply  [nested|flat] 9+ messages in thread


end of thread, other threads:[~2005-07-13 14:25 UTC | newest]

Thread overview: 9+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-07-12 09:03 Re: Patch for Libpq enabled psqlodbc Dave Page <dpage@vale-housing.co.uk>
2005-07-12 23:54 ` Joel Fradkin <jfradkin@wazagua.com>
2005-07-12 10:27 Re: Patch for Libpq enabled psqlodbc Dave Page <dpage@vale-housing.co.uk>
2005-07-13 07:36 Re: Patch for Libpq enabled psqlodbc Dave Page <dpage@vale-housing.co.uk>
2005-07-13 10:38 Re: Patch for Libpq enabled psqlodbc Anoop Kumar <anoopk@pervasive-postgres.com>
2005-07-13 10:49 Re: Patch for Libpq enabled psqlodbc Dave Page <dpage@vale-housing.co.uk>
2005-07-13 12:53 Re: Patch for Libpq enabled psqlodbc Merlin Moncure <merlin.moncure@rcsonline.com>
2005-07-13 13:40 Re: Patch for Libpq enabled psqlodbc Merlin Moncure <merlin.moncure@rcsonline.com>
2005-07-13 14:25 Re: Patch for Libpq enabled psqlodbc 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