psqlodbc.git
19 years agoRemove files not needed in the enhanced branch
Dave Page [Sat, 8 Apr 2006 16:45:05 +0000 (16:45 +0000)]
Remove files not needed in the enhanced branch

19 years agoCommit the changed files from the enhanced branch
Dave Page [Sat, 8 Apr 2006 16:30:02 +0000 (16:30 +0000)]
Commit the changed files from the enhanced branch

19 years agotypo "Miscellanous". REL8_1_STABLE
Hiroshi Saito [Sun, 26 Feb 2006 16:48:20 +0000 (16:48 +0000)]
typo "Miscellanous".
report of John Poole.

19 years agoMore release note tweaks. REL-08_01_0200
Dave Page [Thu, 2 Feb 2006 09:07:39 +0000 (09:07 +0000)]
More release note tweaks.

19 years agoTweak release notes
Dave Page [Tue, 31 Jan 2006 13:39:30 +0000 (13:39 +0000)]
Tweak release notes

19 years agoFix typo
Dave Page [Tue, 31 Jan 2006 13:31:47 +0000 (13:31 +0000)]
Fix typo

19 years agoVersion number bump. Fix some line ends.
Dave Page [Tue, 31 Jan 2006 13:21:26 +0000 (13:21 +0000)]
Version number bump. Fix some line ends.

19 years agoquick hack againist access violation with Disallow premature - the feature is still...
Ludek Finstrle [Tue, 31 Jan 2006 09:53:02 +0000 (09:53 +0000)]
quick hack againist access violation with Disallow premature - the feature is still broken

19 years agofixed point of failure on x86_64 boxes with PGAPI_SetConnectOption
Ludek Finstrle [Tue, 31 Jan 2006 09:47:49 +0000 (09:47 +0000)]
fixed point of failure on x86_64 boxes with PGAPI_SetConnectOption

19 years agoAdd Notes:psqlODBC 08.01.0108
Hiroshi Saito [Fri, 27 Jan 2006 23:15:16 +0000 (23:15 +0000)]
Add Notes:psqlODBC 08.01.0108

19 years agoNotes:psqlODBC 08.01.0107,08.01.0106
Hiroshi Saito [Fri, 27 Jan 2006 14:32:22 +0000 (14:32 +0000)]
Notes:psqlODBC 08.01.0107,08.01.0106
Contents of change.

19 years agoFix the version stamp.
Dave Page [Fri, 27 Jan 2006 09:00:38 +0000 (09:00 +0000)]
Fix the version stamp.

19 years agofixes for 64-bit compilation (still missing one for PGAPI_SetConnectOption)
Ludek Finstrle [Thu, 26 Jan 2006 20:08:08 +0000 (20:08 +0000)]
fixes for 64-bit compilation (still missing one for PGAPI_SetConnectOption)

19 years agoupdate version info to upcoming 08.01.0108
Ludek Finstrle [Thu, 26 Jan 2006 19:50:02 +0000 (19:50 +0000)]
update version info to upcoming 08.01.0108

19 years agoadd support for returning right SQLSTATE from SQLGetDiagField and SQLGetDiagRec
Ludek Finstrle [Thu, 26 Jan 2006 19:34:25 +0000 (19:34 +0000)]
add support for returning right SQLSTATE from SQLGetDiagField and SQLGetDiagRec

19 years agofixed variable length recognition in CC_mapping
Ludek Finstrle [Thu, 26 Jan 2006 19:24:51 +0000 (19:24 +0000)]
fixed variable length recognition in CC_mapping

19 years agofix for one forgotten text_as_longvarchar test
Ludek Finstrle [Thu, 26 Jan 2006 19:20:34 +0000 (19:20 +0000)]
fix for one forgotten text_as_longvarchar test

19 years agorepair broken support for SQLSetPos
Ludek Finstrle [Thu, 26 Jan 2006 19:17:38 +0000 (19:17 +0000)]
repair broken support for SQLSetPos

19 years agofixed ODBC driver failure when log output isn't writeable
Ludek Finstrle [Thu, 26 Jan 2006 19:13:59 +0000 (19:13 +0000)]
fixed ODBC driver failure when log output isn't writeable

19 years agoadd support for START TRANSACTION command
Ludek Finstrle [Thu, 26 Jan 2006 19:11:17 +0000 (19:11 +0000)]
add support for START TRANSACTION command
change recognize transaction only when libpq PQresultStatus returns PGRES_COMMAND_OK

19 years agocorrect autocommit off behaviour
Ludek Finstrle [Thu, 26 Jan 2006 19:06:42 +0000 (19:06 +0000)]
correct autocommit off behaviour

19 years agoremove obsolete (not used) protocol option
Ludek Finstrle [Thu, 26 Jan 2006 18:44:29 +0000 (18:44 +0000)]
remove obsolete (not used) protocol option

19 years agoDocument PG_CONFIG variable in configure --help output.
Peter Eisentraut [Sat, 14 Jan 2006 18:15:39 +0000 (18:15 +0000)]
Document PG_CONFIG variable in configure --help output.

19 years agoName libraries psqlodbca or psqlodbcw, depending on whether Unicode is
Peter Eisentraut [Sat, 14 Jan 2006 18:12:00 +0000 (18:12 +0000)]
Name libraries psqlodbca or psqlodbcw, depending on whether Unicode is
enabled.

19 years agoUpdate to 8.01.0105 development snapshot.
Hiroshi Saito [Wed, 11 Jan 2006 02:51:20 +0000 (02:51 +0000)]
Update to 8.01.0105 development snapshot.

19 years agofix problem with retrieving bad long data from unicode driver
Ludek Finstrle [Sun, 8 Jan 2006 10:09:52 +0000 (10:09 +0000)]
fix problem with retrieving bad long data from unicode driver

19 years agocall RALLBACK with bad stmt only when autocommit is on
Ludek Finstrle [Sun, 8 Jan 2006 10:07:03 +0000 (10:07 +0000)]
call RALLBACK with bad stmt only when autocommit is on

19 years agoSome minor corrections
Dave Page [Fri, 6 Jan 2006 12:18:28 +0000 (12:18 +0000)]
Some minor corrections

19 years agofix problem with SQLState returning in failed stmt
Ludek Finstrle [Sun, 25 Dec 2005 07:26:43 +0000 (07:26 +0000)]
fix problem with SQLState returning in failed stmt

19 years agodriver answer for pg_* tables in SQLColAttribute it it's asked direclty (don't take...
Ludek Finstrle [Sun, 25 Dec 2005 07:22:48 +0000 (07:22 +0000)]
driver answer for pg_* tables in SQLColAttribute it it's asked direclty (don't take a care on Show system tables option)

19 years agoget count of binding parameters from stmt
Ludek Finstrle [Sun, 25 Dec 2005 07:17:55 +0000 (07:17 +0000)]
get count of binding parameters from stmt
it avoid bad data_at_exec parameters

19 years agoadded support for ; as delimiter for ConfigDSN
Ludek Finstrle [Sat, 17 Dec 2005 21:05:44 +0000 (21:05 +0000)]
added support for ; as delimiter for ConfigDSN

19 years agoArrangement of a release note. and next preparation(08.01.02.xx).
Hiroshi Saito [Tue, 13 Dec 2005 01:51:43 +0000 (01:51 +0000)]
Arrangement of a release note. and next preparation(08.01.02.xx).

19 years agoI prepared fix for Bug "Autocommit and Cancel". It's woking patch
Dave Page [Fri, 9 Dec 2005 23:37:41 +0000 (23:37 +0000)]
I prepared fix for Bug "Autocommit and Cancel". It's woking patch
(it's used #ifded NOT_USED). The main changes are in using cancelable
PQsendQuery (it could be ok) and in cleaning and correcting
CC_send_query. CC_send_query should be equivalent with old one
except adding some QR_set_aborted. I'm not sure if it's ok.
[Ludek Finstrle]

19 years agoBump version number in a vain attempt to keep up with Luf...
Dave Page [Fri, 9 Dec 2005 23:19:13 +0000 (23:19 +0000)]
Bump version number in a vain attempt to keep up with Luf...

19 years agoEnsure a commit is issued after connection setup is autocommit is off (bug 1000476...
Dave Page [Fri, 9 Dec 2005 22:59:13 +0000 (22:59 +0000)]
Ensure a commit is issued after connection setup is autocommit is off (bug 1000476) [Ludek Finstrle]

19 years agoEnsure buffer is long enough for all option names (bug 1000477) [Ludek Finstrle]
Dave Page [Fri, 9 Dec 2005 22:50:32 +0000 (22:50 +0000)]
Ensure buffer is long enough for all option names (bug 1000477) [Ludek Finstrle]

19 years agoBack out previous patch.
Dave Page [Fri, 9 Dec 2005 22:40:19 +0000 (22:40 +0000)]
Back out previous patch.

19 years agoRelease,snapshut, Omission in entry.
Hiroshi Saito [Fri, 9 Dec 2005 22:38:40 +0000 (22:38 +0000)]
Release,snapshut, Omission in entry.

19 years agoFix catalog finctions which were still slightly broken in declare/fetch mode [Ludek...
Dave Page [Fri, 9 Dec 2005 22:35:06 +0000 (22:35 +0000)]
Fix catalog finctions which were still slightly broken in declare/fetch mode [Ludek Finstrle]

19 years agoRelease Name: psqlodbc 8.01.0104.
Hiroshi Saito [Fri, 9 Dec 2005 22:31:07 +0000 (22:31 +0000)]
Release Name: psqlodbc 8.01.0104.

19 years agoMistake of a character was corrected.
Hiroshi Saito [Thu, 8 Dec 2005 17:45:21 +0000 (17:45 +0000)]
Mistake of a character was corrected.

19 years ago> It seems that for SQLColAttributes to return something else than
Dave Page [Thu, 8 Dec 2005 09:11:28 +0000 (09:11 +0000)]
> It seems that for SQLColAttributes to return something else than
> SQL_NULLABLE, "Parse Statements" option MUST be turned on. Am i right?
> For some reason stmt->manual_result  is true, which causes that the
> statement is not parsed. What does this stmt->manual_result  mean?

I attach patch which solve this problem. Thanks to Robert Jireš to point
it and find the solution.
[Ludek Finstrle]

19 years agoAdd some release notes compiled by Hiroshi Saito.
Dave Page [Thu, 8 Dec 2005 08:57:42 +0000 (08:57 +0000)]
Add some release notes compiled by Hiroshi Saito.

19 years ago I've attached patch to solve problem with multiple calling SQLPrepare
Dave Page [Tue, 6 Dec 2005 08:49:18 +0000 (08:49 +0000)]
  I've attached patch to solve problem with multiple calling SQLPrepare
or SQLExecDirect with Server side prepare. The patch is based on patch
posted by Reiner. I thank you for patch and testing.
[Ludek Finstrle]

19 years agoODBC driver fail (raise exception) with these steps (with Server Side Prepare):
Dave Page [Mon, 5 Dec 2005 16:44:02 +0000 (16:44 +0000)]
ODBC driver fail (raise exception) with these steps (with Server Side Prepare):
1) SQLPrepare (SELECT relname FROM pg_class WHERE relname != ?)
2) SQLExecute
[Ludek Finstrle]

19 years agoMake sure data_at_exec parameters are cleared by SQLCancel {Dave Page & Ludek Finstrl...
Dave Page [Fri, 2 Dec 2005 20:18:16 +0000 (20:18 +0000)]
Make sure data_at_exec parameters are cleared by SQLCancel {Dave Page & Ludek Finstrle, with test case from Andrus]

19 years agoFormatting cleanup. Reenable Luf's verbose logging.
Dave Page [Fri, 2 Dec 2005 13:24:39 +0000 (13:24 +0000)]
Formatting cleanup. Reenable Luf's verbose logging.

19 years ago- skip QR_fetch_tuples when backend returns PGRES_COMMAND_OK - there is no data to...
Dave Page [Fri, 2 Dec 2005 11:00:43 +0000 (11:00 +0000)]
- skip QR_fetch_tuples when backend returns PGRES_COMMAND_OK - there is no data to fetch
- add support for returning rowcount from select statements (with UseDeclareFetch disabled - as non-libpq versions)
- add some mylog output for better tracing
[Ludek Finstrle]

19 years agoPost release version bump
Dave Page [Thu, 1 Dec 2005 17:16:57 +0000 (17:16 +0000)]
Post release version bump

19 years agoFix server side prepare [Ludek Finstrle] REL-08_01_0102
Dave Page [Wed, 30 Nov 2005 13:41:44 +0000 (13:41 +0000)]
Fix server side prepare [Ludek Finstrle]

19 years agoFix for bug "#1000444 Table names repeated in BDE with usedeclarefetch=1", courtesy...
Dave Page [Mon, 28 Nov 2005 11:01:35 +0000 (11:01 +0000)]
Fix for bug "#1000444 Table names repeated in BDE with usedeclarefetch=1", courtesy of Ludek Finstrle

19 years agoCleanup a bunch of inconsistent PGAPI_ declarations/definitions
Dave Page [Fri, 25 Nov 2005 10:43:25 +0000 (10:43 +0000)]
Cleanup a bunch of inconsistent PGAPI_ declarations/definitions

19 years agoBump version number.
Dave Page [Thu, 24 Nov 2005 12:33:54 +0000 (12:33 +0000)]
Bump version number.

19 years agoMake sure the StringLength is set correctly for SQLGetConnectAttr values that are...
Dave Page [Thu, 24 Nov 2005 11:44:59 +0000 (11:44 +0000)]
Make sure the StringLength is set correctly for SQLGetConnectAttr values that are actually in SQLGetConnectOption

19 years agoCorrect value returned by SQLGetInfo for SQL_CATALOG_LOCATION/SQL_QUALIFIER_LOCATION
Dave Page [Thu, 24 Nov 2005 10:20:09 +0000 (10:20 +0000)]
Correct value returned by SQLGetInfo for SQL_CATALOG_LOCATION/SQL_QUALIFIER_LOCATION

19 years agoAdd installer upgrade script.
Dave Page [Tue, 15 Nov 2005 11:06:14 +0000 (11:06 +0000)]
Add installer upgrade script.

19 years agoDon't include the version number in the Start Menu folder on Windows otherwise you...
Dave Page [Fri, 11 Nov 2005 10:46:16 +0000 (10:46 +0000)]
Don't include the version number in the Start Menu folder on Windows otherwise you end up with duplicates after an upgrade.

19 years agoCorrect a couple of broken filenames.
Dave Page [Fri, 11 Nov 2005 10:01:40 +0000 (10:01 +0000)]
Correct a couple of broken filenames.

19 years agoSeem to have skipped a version. Must stop working after midnight :-( REL-08_01_0101
Dave Page [Thu, 10 Nov 2005 09:44:14 +0000 (09:44 +0000)]
Seem to have skipped a version. Must stop working after midnight :-(

19 years agoVersion number bump
Dave Page [Wed, 9 Nov 2005 15:28:05 +0000 (15:28 +0000)]
Version number bump

19 years agoFix non-declare/fetch mode.
Dave Page [Wed, 9 Nov 2005 15:26:07 +0000 (15:26 +0000)]
Fix non-declare/fetch mode.

19 years agoReturn the error message from libpq on connection failure.
Dave Page [Wed, 9 Nov 2005 09:38:29 +0000 (09:38 +0000)]
Return the error message from libpq on connection failure.

19 years agoCorrect resource compiler options
Dave Page [Wed, 9 Nov 2005 09:38:02 +0000 (09:38 +0000)]
Correct resource compiler options

19 years agoCorrect directory name, per Jeff Bohmer
Dave Page [Tue, 8 Nov 2005 09:13:33 +0000 (09:13 +0000)]
Correct directory name, per Jeff Bohmer

19 years agoPost-release version number bump
Dave Page [Sun, 6 Nov 2005 00:01:59 +0000 (00:01 +0000)]
Post-release version number bump

19 years agoUpdate version number for release. REL-08_01_0100
Dave Page [Sat, 5 Nov 2005 14:04:52 +0000 (14:04 +0000)]
Update version number for release.

19 years agoRemove remaining references to Debian and Red Hat HOWTOs.
Peter Eisentraut [Fri, 4 Nov 2005 19:30:17 +0000 (19:30 +0000)]
Remove remaining references to Debian and Red Hat HOWTOs.

19 years ago1) QR_get_fields() gets called when SC_fetch() is entered. However, the QR
Dave Page [Fri, 4 Nov 2005 15:37:55 +0000 (15:37 +0000)]
1) QR_get_fields() gets called when SC_fetch() is entered. However, the QR
cleanup will free the QResultClass object. And the pointer "coli" is no longer
valid when CI_get_oid() gets called further down.
I have fixed this by calling QR_get_fields() after the first if-statement.

2) This is basically the same "cache" bug: PGAPI_ExtendedFetch() caches the
stored QResultClass object when the function is entered. But after SC_fetch()
was called, the pointer is no longer valid.
I have fixed this by calling SC_get_Curres() again after the call to
SC_fetch().
[Rainer Bauer]

19 years agoIt's C, not C++ Dave :-(
Dave Page [Fri, 4 Nov 2005 15:17:49 +0000 (15:17 +0000)]
It's C, not C++ Dave :-(

19 years agoThe test for self being NULL in QR_Destructor() should be the first statement. Curren...
Dave Page [Fri, 4 Nov 2005 15:03:25 +0000 (15:03 +0000)]
The test for self being NULL in QR_Destructor() should be the first statement. Currently, self->conn is called before the check. [Rainer Bauer]

19 years agoRemove wildly outdated Debian and Red Hat HOWTOs.
Peter Eisentraut [Fri, 4 Nov 2005 10:50:52 +0000 (10:50 +0000)]
Remove wildly outdated Debian and Red Hat HOWTOs.

19 years agoFix declare/fetch memory leak. Now we get a nice flat line :-)
Dave Page [Thu, 3 Nov 2005 22:31:16 +0000 (22:31 +0000)]
Fix declare/fetch memory leak. Now we get a nice flat line :-)

19 years agoAdd a VC++ project file.
Dave Page [Thu, 3 Nov 2005 22:07:17 +0000 (22:07 +0000)]
Add a VC++ project file.

19 years agoRemove (libpq) suffix to the driver name on dialogues etc. Use nicer font on English...
Dave Page [Thu, 3 Nov 2005 13:25:05 +0000 (13:25 +0000)]
Remove (libpq) suffix to the driver name on dialogues etc. Use nicer font on English dialogues per grizzle from Magnus :-).

19 years agoRemove (libpq) suffix to the driver name on dialogues etc.
Dave Page [Thu, 3 Nov 2005 13:11:52 +0000 (13:11 +0000)]
Remove (libpq) suffix to the driver name on dialogues etc.

19 years agoSwitch off echo
Dave Page [Thu, 3 Nov 2005 12:53:09 +0000 (12:53 +0000)]
Switch off echo

19 years agoFix a major memory leak in declare/fetch mode. Ensure that forward only cursors can... REL-08_01_0006
Dave Page [Thu, 3 Nov 2005 12:05:13 +0000 (12:05 +0000)]
Fix a major memory leak in declare/fetch mode. Ensure that forward only cursors can only be used in a forward direction.

20 years agoFix Declare/fetch when used with bound columns.
Dave Page [Wed, 2 Nov 2005 16:29:29 +0000 (16:29 +0000)]
Fix Declare/fetch when used with bound columns.

20 years agoFix typo, per Johann Zuschlag
Dave Page [Wed, 2 Nov 2005 14:49:33 +0000 (14:49 +0000)]
Fix typo, per Johann Zuschlag

20 years agoPrevent setting a connstrout value when the max length is set to zero.
Dave Page [Wed, 2 Nov 2005 10:45:43 +0000 (10:45 +0000)]
Prevent setting a connstrout value when the max length is set to zero.

20 years agoInitial fix for Declare/Fetch option [Anoop, Sivakumar and Vaidhy @ Pervasive]
Dave Page [Mon, 31 Oct 2005 19:57:06 +0000 (19:57 +0000)]
Initial fix for Declare/Fetch option [Anoop, Sivakumar and Vaidhy @ Pervasive]

20 years agoWhen EN_Destructor is called it searches through the connection array
Dave Page [Tue, 25 Oct 2005 07:38:54 +0000 (07:38 +0000)]
When EN_Destructor is called it searches through the connection array
and destroys any connections which belong that environment. Unfortunately
it doesn't NULL out the connection array entry afterwards so a future
call to EN_Destructor can wind up trying to destroy that connection
again if another environment has been allocated at the same address.

Also, shouldn't EN_Destructor hold the CONNS critical section while it
is playing with the connection array?

The attached patch fixes both of these issues and seems to have fixed
the crashes I was observing.
[Tom Hughes]

20 years agoThis patch fixes a potential segfault that can happen if a dbc handle is created...
Dave Page [Tue, 25 Oct 2005 07:35:19 +0000 (07:35 +0000)]
This patch fixes a potential segfault that can happen if a dbc handle is created and then destroyed without attempting a connection.
[Scot Loach]

20 years agoMassive compiler warnings cleanup.
Peter Eisentraut [Thu, 20 Oct 2005 13:06:10 +0000 (13:06 +0000)]
Massive compiler warnings cleanup.

20 years agoUse program files environment var in installer per Johann Zuschlag
Dave Page [Wed, 12 Oct 2005 13:22:13 +0000 (13:22 +0000)]
Use program files environment var in installer per Johann Zuschlag

20 years agoBump version number
Dave Page [Wed, 12 Oct 2005 09:21:08 +0000 (09:21 +0000)]
Bump version number

20 years agoUse program files environment var in Windows makefile per Johann Zuschlag REL-08_01_0005
Dave Page [Wed, 12 Oct 2005 08:15:18 +0000 (08:15 +0000)]
Use program files environment var in Windows makefile per Johann Zuschlag

20 years agoUse pg_config to find libpq.
Peter Eisentraut [Wed, 12 Oct 2005 08:12:30 +0000 (08:12 +0000)]
Use pg_config to find libpq.

20 years agoFix spelling of PostgreSQL.
Peter Eisentraut [Tue, 11 Oct 2005 07:47:11 +0000 (07:47 +0000)]
Fix spelling of PostgreSQL.

20 years agoAdd Kerberos support.
Dave Page [Fri, 7 Oct 2005 09:47:36 +0000 (09:47 +0000)]
Add Kerberos support.
Update paths to use libpq from PostgreSQL 8.1 by default.

20 years agoAdd OpenSSL and MIT Kerberos acknowledgements
Dave Page [Fri, 7 Oct 2005 09:03:34 +0000 (09:03 +0000)]
Add OpenSSL and MIT Kerberos acknowledgements

20 years agoCreate logfiles in mode 0600 on *nix
Dave Page [Thu, 6 Oct 2005 10:01:43 +0000 (10:01 +0000)]
Create logfiles in mode 0600 on *nix

20 years agoDon't reuse the UNICODE macro
Dave Page [Wed, 5 Oct 2005 20:31:40 +0000 (20:31 +0000)]
Don't reuse the UNICODE macro

20 years agoI've attached a patch that uses the SQLSTATE from the backend any time
Dave Page [Tue, 4 Oct 2005 19:03:19 +0000 (19:03 +0000)]
I've attached a patch that uses the SQLSTATE from the backend any time
the error condition after executing a query is
STMT_ERROR_TAKEN_FROM_BACKEND.  Besides solving the problem I reported,
this seems to make much more sense than setting the SQLSTATE arbitrarily
to HY000 "General Error" in this situation.  I look forward to your
feedback.
[Chris Ingram]

20 years agoMap 'name' to SQL_VARCHAR rather than SQL_CHAR - this fixes an error with SQL Server...
Dave Page [Wed, 28 Sep 2005 08:33:24 +0000 (08:33 +0000)]
Map 'name' to SQL_VARCHAR rather than SQL_CHAR - this fixes an error with SQL Server linked servers which gets confused by the mismatch between the column size and the data size.

20 years agoFurther multibyte tweaks from Hiroshi.
Dave Page [Fri, 23 Sep 2005 09:35:58 +0000 (09:35 +0000)]
Further multibyte tweaks from Hiroshi.

20 years agoUpdate multibyte encodings and mappings [Hiroshi Saito]
Dave Page [Wed, 21 Sep 2005 20:26:17 +0000 (20:26 +0000)]
Update multibyte encodings and mappings [Hiroshi Saito]

20 years agoThese files are no longer used by the Libpq version of psqlodbc.
Anoop Kumar [Mon, 19 Sep 2005 13:44:09 +0000 (13:44 +0000)]
These files are no longer used by the Libpq version of psqlodbc.

20 years agoSocket code is removed from the source. Now, psqlodbc driver relies completely on...
Anoop Kumar [Mon, 19 Sep 2005 13:31:59 +0000 (13:31 +0000)]
Socket code is removed from the source.  Now, psqlodbc driver relies completely on Libpq for the communication.