psqlodbc.git
23 years agoChange LOCK statements to start new transaction
Hiroshi Inoue [Fri, 9 Aug 2002 10:04:21 +0000 (10:04 +0000)]
Change LOCK statements to start new transaction
in auto-commit off mode.

23 years ago1) Improve the handling of the queries like (select ..) union (select ..)
Hiroshi Inoue [Thu, 1 Aug 2002 03:07:50 +0000 (03:07 +0000)]
1) Improve the handling of the queries like (select ..) union (select ..)
   whose first non-space character is '('.
2) Handle Insert .. () VALUES ().

23 years agoFix a bug about automatic client_encoding setting.
Hiroshi Inoue [Tue, 30 Jul 2002 00:48:02 +0000 (00:48 +0000)]
Fix a bug about automatic client_encoding setting.

23 years agoFix a bug about the handling of CX parameter of the connection string
Hiroshi Inoue [Fri, 26 Jul 2002 08:45:54 +0000 (08:45 +0000)]
Fix a bug about the handling of CX parameter of the connection string
reported by Sergey Smirnov.

23 years agoFix a bug about the handling of '.' in parse.c.
Hiroshi Inoue [Mon, 15 Jul 2002 02:56:39 +0000 (02:56 +0000)]
Fix a bug about the handling of '.' in parse.c.

23 years agoAn improvement of User Interface(Setup dialog) by Dave Page.
Hiroshi Inoue [Fri, 12 Jul 2002 02:02:26 +0000 (02:02 +0000)]
An improvement of User Interface(Setup dialog) by Dave Page.

23 years ago1) Fix a memory leak in use declare/fetch mode.
Hiroshi Inoue [Fri, 12 Jul 2002 01:41:25 +0000 (01:41 +0000)]
1) Fix a memory leak in use declare/fetch mode.
2) Change default build mode to multibyte(Windows).

23 years agoMake NAMEDATALEN changeable at compile time.
Hiroshi Inoue [Thu, 11 Jul 2002 01:52:46 +0000 (01:52 +0000)]
Make NAMEDATALEN changeable at compile time.

23 years agoFix a bug reported by Zhou Han.
Hiroshi Inoue [Fri, 5 Jul 2002 01:31:41 +0000 (01:31 +0000)]
Fix a bug reported by Zhou Han.

23 years ago1) prevent setting of KSQO on 7.3+ servers(Thanks to Dave Page).
Hiroshi Inoue [Fri, 28 Jun 2002 02:44:15 +0000 (02:44 +0000)]
1) prevent setting of KSQO on 7.3+ servers(Thanks to Dave Page).
2) Allow LF->CR/LF conversion under UNICODE driver.

23 years ago1) Add support for GB18030.
Hiroshi Inoue [Tue, 25 Jun 2002 01:54:19 +0000 (01:54 +0000)]
1) Add support for GB18030.
2) Fix a bug about the handling of large objects.

23 years agoUpdate copyright to 2002.
Bruce Momjian [Thu, 20 Jun 2002 20:29:54 +0000 (20:29 +0000)]
Update copyright to 2002.

23 years agoAdd LOCALTIME and LOCALTIMESTAMP functions per SQL99 standard.
Thomas G. Lockhart [Sat, 15 Jun 2002 03:00:09 +0000 (03:00 +0000)]
Add LOCALTIME and LOCALTIMESTAMP functions per SQL99 standard.
Remove ODBC-compatible empty parentheses from calls to SQL99 functions
 for which these parentheses do not match the standard.
Update the ODBC driver to ensure compatibility with the ODBC standard
 for these functions (e.g. CURRENT_TIMESTAMP, CURRENT_USER, etc).
Include a new appendix in the User's Guide which lists the labeled features
 for SQL99 (the labeled features replaced the "basic", "intermediate",
 and "advanced" categories from SQL92). features.sgml does not yet split
 this list into "supported" and "unsupported" lists.

23 years ago1) Fix a bug *double error message*.
Hiroshi Inoue [Wed, 12 Jun 2002 02:27:44 +0000 (02:27 +0000)]
1) Fix a bug *double error message*.
2) Fix a bug *passowrd prompt in case of md5 authentication*.
3) Improve the DSN setup dialog.

23 years agoAdd missing win_setup.h.
Hiroshi Inoue [Thu, 6 Jun 2002 09:47:25 +0000 (09:47 +0000)]
Add missing win_setup.h.

23 years agoAdd *Int8 As* option.
Hiroshi Inoue [Thu, 6 Jun 2002 04:50:47 +0000 (04:50 +0000)]
Add *Int8 As* option.

23 years ago1) Support Keyset Driven driver cursors.
Hiroshi Inoue [Wed, 22 May 2002 05:51:03 +0000 (05:51 +0000)]
1) Support Keyset Driven driver cursors.
2) Supprt ARD precision/scale and SQL_C_NUEMRIC.
3) Minimal implementation of SQLGetDiagField().
4) SQLRowCount() reports the result of SQLSetPos and SQLBulkOperation.
5) int8 -> SQL_NUMERIC for Microsoft Jet.
6) Support isolation level change.
7) ODBC3.0 SQLSTATE code.
8) Append mode log files.

23 years agoAdd a file for version control.
Hiroshi Inoue [Thu, 9 May 2002 04:10:22 +0000 (04:10 +0000)]
Add a file for version control.

23 years agoFix for the following items about escape sequence
Hiroshi Inoue [Thu, 25 Apr 2002 02:50:08 +0000 (02:50 +0000)]
Fix for the following items about escape sequence

   by Marcelo Aceto <aceto@newinf.com.br> .

1) Wrong translations of embedded escape sequences inside outer join escape
sequences.
2) Wrong translation of parameter markers inside outer joins and function
escape sequences.
3) Bad concatenation of date, time, timestamp constants with next word in
statement:

23 years agoSorry for the package, but the following patch need to be applied to get
Bruce Momjian [Wed, 24 Apr 2002 01:56:20 +0000 (01:56 +0000)]
Sorry for the package, but the following patch need to be applied to get
the new verion compiled on SCO Openserver 5.0.5 and Unixware 7.1.1

Nicolas Bazin

23 years ago1) Fix SQLProcedures().
Hiroshi Inoue [Tue, 23 Apr 2002 04:14:13 +0000 (04:14 +0000)]
1) Fix SQLProcedures().
2) Handle timestamp without time zone.
3) Improve SQLForeignKeys() in multibyte mode.

23 years ago1) Fix a bug about reporting varchar info thanks to Aceto.
Hiroshi Inoue [Mon, 15 Apr 2002 02:46:00 +0000 (02:46 +0000)]
1) Fix a bug about reporting varchar info thanks to Aceto.
2) Introcuced 3 drivers.
3) The version is now 7.02.0001.

23 years ago1) Fix a bug in declare/fetch mode.
Hiroshi Inoue [Fri, 12 Apr 2002 08:03:12 +0000 (08:03 +0000)]
1) Fix a bug in declare/fetch mode.
2) Suppress some error logs for the request to other drivers.

23 years agoPrevent an infinite loop of error reporting.
Hiroshi Inoue [Wed, 10 Apr 2002 08:18:54 +0000 (08:18 +0000)]
Prevent an infinite loop of error reporting.

23 years agoLet psqlodbc30 be compilable without /D DRIVER_CURSOR_IMPLEMENT.
Hiroshi Inoue [Tue, 9 Apr 2002 03:58:33 +0000 (03:58 +0000)]
Let psqlodbc30 be compilable without /D DRIVER_CURSOR_IMPLEMENT.

23 years agoFix a bug in SQLError().
Hiroshi Inoue [Thu, 4 Apr 2002 23:29:16 +0000 (23:29 +0000)]
Fix a bug in SQLError().

23 years agoFix a bug in multibyte_strchr().
Hiroshi Inoue [Thu, 4 Apr 2002 01:36:17 +0000 (01:36 +0000)]
Fix a bug in multibyte_strchr().

23 years agoFix compiler warnings.
Hiroshi Inoue [Tue, 2 Apr 2002 10:57:25 +0000 (10:57 +0000)]
Fix compiler warnings.

23 years ago[HACKERS] Proposed patch for ODBC driver w/ C-a-n-c-e-l
Hiroshi Inoue [Tue, 2 Apr 2002 10:50:50 +0000 (10:50 +0000)]
[HACKERS] Proposed patch for ODBC driver w/ C-a-n-c-e-l
    From: Bradley McLean <brad@bradm.net>

Patch against 7,2 submitted for comment.

This seems to work just fine; Now, when our users submit a 2 hour
query with four million row sorts by accident, then cancel it 30 seconds
later, it doesn't bog down the server ...

23 years ago1) Add rollback functionality to updatable cursors.
Hiroshi Inoue [Mon, 1 Apr 2002 03:01:15 +0000 (03:01 +0000)]
1) Add rollback functionality to updatable cursors.
2) Implement some options for SQLGetDescField().
3) Handle *Inifinity* timestamp for SQL_C_CHAR type output.
4) Separate Unicode conversions from common implementations.
5) Improve internal parse_statement() function.

23 years agoFix ODBC warnings about missing parens and pg_ismb not used (added
Bruce Momjian [Fri, 29 Mar 2002 07:48:56 +0000 (07:48 +0000)]
Fix ODBC warnings about missing parens and pg_ismb not used (added
#ifdef NOT_USED).

23 years ago[2002-03-28]
Hiroshi Inoue [Thu, 28 Mar 2002 08:08:07 +0000 (08:08 +0000)]
[2002-03-28]
1) Prepare to separate 4 kinds of Descriptor handles.
2) Detect the transaction status more naturally.
3) Improve Parse Statement functionality for the use
   of updatable cursors.
4) Improve updatable cursors.
5) Implement SQLGetDescField() and improve SQLColAttribute().
6) etc.

23 years agoFix for ODBC compile warnings.
Bruce Momjian [Mon, 25 Mar 2002 01:53:55 +0000 (01:53 +0000)]
Fix for ODBC compile warnings.

23 years ago1) Internal improvements to handle updatable cursors(1st cut).
Hiroshi Inoue [Thu, 14 Mar 2002 05:42:04 +0000 (05:42 +0000)]
1) Internal improvements to handle updatable cursors(1st cut).
2) Fix a bug in SQLColAttribute().

23 years agoBug fixes for the 2002-03-08 change.
Hiroshi Inoue [Mon, 11 Mar 2002 10:25:57 +0000 (10:25 +0000)]
Bug fixes for the 2002-03-08 change.
1) Put back the error message for SQLError().
2) Change Disallow premature to handle the SELECTed
   result.
3) Put back the behavior of AUTUCOMMIT mode change.
4) Fix SQLColumns for ODBC3.0.

5) Improve the handling of variable bookmark in ODBC3.0.
6) Enable Recognize Unique Index Button.

23 years agoRemove compile errors.
Hiroshi Inoue [Fri, 8 Mar 2002 09:50:39 +0000 (09:50 +0000)]
Remove compile errors.

23 years ago1) Implement SQLParamOptions().
Hiroshi Inoue [Fri, 8 Mar 2002 08:52:55 +0000 (08:52 +0000)]
1) Implement SQLParamOptions().
2) Handle Multiple results and implement SQLMoreResult().
3) Improve multibyte handling thanks to Eiji Tokuya.
4) Add new options.
   LF <-> CR/LF converion.
   TRUE is -1 (for VB).
5) Introduce unicode(UCS-2) support.
6) Reduce the length of connection strings.
7) Improve SQLError, SQLGetDiagRec(ODBC 3.0).
8) Implement SQLTablePrivileges().
9) Miscellaneous changes for ODBC 3.0 support.

23 years agoChange made to elog:
Bruce Momjian [Wed, 6 Mar 2002 06:10:43 +0000 (06:10 +0000)]
Change made to elog:

o  Change all current CVS messages of NOTICE to WARNING.  We were going
to do this just before 7.3 beta but it has to be done now, as you will
see below.

o Change current INFO messages that should be controlled by
client_min_messages to NOTICE.

o Force remaining INFO messages, like from EXPLAIN, VACUUM VERBOSE, etc.
to always go to the client.

o Remove INFO from the client_min_messages options and add NOTICE.

Seems we do need three non-ERROR elog levels to handle the various
behaviors we need for these messages.

Regression passed.

23 years ago> Tatsuo Ishii wrote:
Bruce Momjian [Tue, 5 Mar 2002 05:52:50 +0000 (05:52 +0000)]
> Tatsuo Ishii wrote:
> > > > It was made to cope with encoding such as an Asian bloc in 7.2Beta2.
> > > >
> > > > Added ServerEncoding
> > > >         Korean (JOHAB), Thai (WIN874),
> > > >         Vietnamese (TCVN), Arabic (WIN1256)
> > > >
> > > > Added ClientEncoding
> > > >         Simplified Chinese (GBK), Korean (UHC)
> > > >
> > > >
> > > >
> http://www.sankyo-unyu.co.jp/Pool/postgresql-7.2b2.newencoding.diff.tar.gz
> > > > (608K)
> > >
> > > Looks good.  I need some people to review this for me.
> >
> > For me they look good too. The only missing part is a
> > documentation. I will ask him to write it up. If he couldn't, I will
> > do it for him.
> > > The diff is 3mb
> > > but appears to address only additions to multibyte.  I have attached a
> > > list of files it modifies.  Also, look at the sizes of the mb/
> > > directory.  It is getting large:
> > >
> > >   4       ./CVS
> > >   6       ./Unicode/CVS
> > >   3433    ./Unicode
> > >   6197    .
> >
> > Yes. We definitely need the on-the-fly encoding addition capability:
> > i.e. CREATE CHRACTER SET in the future...
> > --
> > Tatsuo Ishii
> >
> >

Address chainge.

http://www.sankyo-unyu.co.jp/Pool/postgresql-7.2.newencoding.diff.gz

Add PsqlODBC and document ...etc patch.

Eiji Tokuya

23 years agoAdd files for Unicode support.
Hiroshi Inoue [Fri, 1 Mar 2002 07:18:34 +0000 (07:18 +0000)]
Add files for Unicode support.

23 years agoImprove the handling of ODBC escape(a request from Marcelo Aceto).
Hiroshi Inoue [Wed, 27 Feb 2002 01:43:24 +0000 (01:43 +0000)]
Improve the handling of ODBC escape(a request from Marcelo Aceto).
Change SQLGetFunctions() to reply not yet implemented ODBC 3.0
functions precisely.

23 years agoRemove compile warnings in multibute mode.
Hiroshi Inoue [Mon, 18 Feb 2002 05:54:50 +0000 (05:54 +0000)]
Remove compile warnings in multibute mode.

23 years agoThe version is now 7.01.0010.
Hiroshi Inoue [Mon, 18 Feb 2002 03:16:11 +0000 (03:16 +0000)]
The version is now 7.01.0010.
1) Handle parameter array.
2) Allow re-use of the connection handle after SQLDisconnect.
3) Reject NULL if no indicator specified.
4) Improve the handling of '_' in table name.
5) Unify internal begin/commit/abort operations.
6) Change SQLTables() to return null not "" for the
   table_owner.
7) Fix a bug about parameter handling reported by Benoit Menendez.
8) Add cast in handling ODBC date/time escape sequences.
9) Fix a bug about cache_size handing in declare/fetch mode.

[ODBC3.0 related]
10) Improve the handling of descriptor handles(ODBC3.0).
11) Improve the type handling of some types for ODBC3.0.

[Thanks to Marcelo Aceto for his useful patches]
12) Allow nested ODBC escape.
13) Allow changing autocommit on/off inside the transaction
    block.
14) Improve the handling of ODBC scalar functions.

23 years agoSeparate info30.c from info.c.
Hiroshi Inoue [Mon, 18 Feb 2002 02:15:04 +0000 (02:15 +0000)]
Separate info30.c from info.c.

23 years agoAdd files for ODBC3.0 support.
Hiroshi Inoue [Mon, 18 Feb 2002 01:43:24 +0000 (01:43 +0000)]
Add files for ODBC3.0 support.

23 years agoRemove ODBC todo, add to main TODO.
Bruce Momjian [Mon, 18 Feb 2002 01:15:46 +0000 (01:15 +0000)]
Remove ODBC todo, add to main TODO.

23 years agoSmall AIX fixes from Rick Flower. REL7_2_STABLE REL7_2 REL7_2_RC1 REL7_2_RC2
Bruce Momjian [Mon, 14 Jan 2002 15:34:41 +0000 (15:34 +0000)]
Small AIX fixes from  Rick Flower.

23 years ago*** empty log message ***
Hiroshi Inoue [Fri, 11 Jan 2002 06:01:47 +0000 (06:01 +0000)]
*** empty log message ***

23 years agoAdd a directory to save the changes until 7.3-tree is branched.
Hiroshi Inoue [Fri, 11 Jan 2002 02:50:01 +0000 (02:50 +0000)]
Add a directory to save the changes until 7.3-tree is branched.

23 years agoMake sure that all <ctype.h> routines are called with unsigned char REL7_2_BETA5
Tom Lane [Sun, 30 Dec 2001 23:09:42 +0000 (23:09 +0000)]
Make sure that all <ctype.h> routines are called with unsigned char
values; it's not portable to call them with signed chars.  I recall doing
this for the last release, but a few more uncasted calls have snuck in.

23 years agoRemove duplicate lines from fouled up last commit (my DSL line failed
Thomas G. Lockhart [Fri, 21 Dec 2001 06:01:36 +0000 (06:01 +0000)]
Remove duplicate lines from fouled up last commit (my DSL line failed
 during the CVS update, leaving locks and bad files).

23 years agoRemove duplicate lines from previous patch attempt. Trouble with my REL7_2_BETA4
Thomas G. Lockhart [Mon, 10 Dec 2001 00:11:06 +0000 (00:11 +0000)]
Remove duplicate lines from previous patch attempt. Trouble with my
 DSL line at home broke things right in the middle of an update. :(

23 years agoSupport ODBC-style CURRENT_TIME, CURRENT_USER, etc with trailing empty
Thomas G. Lockhart [Mon, 10 Dec 2001 00:01:14 +0000 (00:01 +0000)]
Support ODBC-style CURRENT_TIME, CURRENT_USER, etc with trailing empty
 parens. This is not SQL spec syntax, so later we will remove
 this extension from gram.y.

23 years agoMore correct way to check for existence of types, which allows to specify
Peter Eisentraut [Sun, 2 Dec 2001 11:38:40 +0000 (11:38 +0000)]
More correct way to check for existence of types, which allows to specify
which include files to consider.  Should fix BeOS problems with int8 types.

23 years agoUpdate since left and right are no longer key words.
Peter Eisentraut [Sun, 2 Dec 2001 11:36:04 +0000 (11:36 +0000)]
Update since left and right are no longer key words.

23 years agoNo longer need define test in md5.h because of Hiroshi's win_md5.c.
Bruce Momjian [Wed, 28 Nov 2001 00:16:53 +0000 (00:16 +0000)]
No longer need define test in md5.h because of Hiroshi's win_md5.c.

23 years agoFix comment at top of file to match file name. REL7_2_BETA3
Hiroshi Inoue [Mon, 19 Nov 2001 06:26:00 +0000 (06:26 +0000)]
Fix comment at top of file to match file name.

23 years agoImprove comments about duplicate files.
Bruce Momjian [Sun, 18 Nov 2001 23:02:19 +0000 (23:02 +0000)]
Improve comments about duplicate files.

23 years agoAdd missing prototype.
Bruce Momjian [Fri, 16 Nov 2001 18:28:16 +0000 (18:28 +0000)]
Add missing prototype.

23 years agoAdd configure result checks on odbc, per Peter E.
Bruce Momjian [Fri, 16 Nov 2001 18:10:04 +0000 (18:10 +0000)]
Add configure result checks on odbc, per Peter E.

23 years agoChange SQLDescribeCol so that it returns alias name properly.
Hiroshi Inoue [Fri, 16 Nov 2001 05:55:10 +0000 (05:55 +0000)]
Change SQLDescribeCol so that it returns alias name properly.

23 years agoUpdate md5.h because it can't get the value from configure.
Bruce Momjian [Thu, 15 Nov 2001 16:16:08 +0000 (16:16 +0000)]
Update md5.h because it can't get the value from configure.

23 years agoFix comment at top of file to match file name.
Bruce Momjian [Thu, 15 Nov 2001 03:12:53 +0000 (03:12 +0000)]
Fix comment at top of file to match file name.

23 years agoUpdate CVS tags.
Bruce Momjian [Tue, 13 Nov 2001 22:08:04 +0000 (22:08 +0000)]
Update CVS tags.

23 years agoRemove md5.c check, add CVS log stamp. Update comments.
Bruce Momjian [Tue, 13 Nov 2001 22:06:58 +0000 (22:06 +0000)]
Remove md5.c check, add CVS log stamp.  Update comments.

23 years agoSync up both files.
Bruce Momjian [Mon, 12 Nov 2001 02:05:17 +0000 (02:05 +0000)]
Sync up both files.

23 years agoAdd comments and remove CVS tag from md5.c so they remain identical.
Bruce Momjian [Mon, 12 Nov 2001 01:59:43 +0000 (01:59 +0000)]
Add comments and remove CVS tag from md5.c so they remain identical.

23 years agoUpdate md5 to match.
Bruce Momjian [Mon, 12 Nov 2001 01:56:12 +0000 (01:56 +0000)]
Update md5 to match.

23 years agoAdd md5 authentication support thanks to Bruce Momjian.
Hiroshi Inoue [Mon, 12 Nov 2001 00:54:28 +0000 (00:54 +0000)]
Add md5 authentication support thanks to Bruce Momjian.

23 years agoUse abbreviated connection string more widely.
Hiroshi Inoue [Sun, 11 Nov 2001 07:24:36 +0000 (07:24 +0000)]
Use abbreviated connection string more widely.
This seems to fix the trouble with PowerBuilder
reported by Magbus Weber.

23 years agoFix indenting for 'extern "C"' cases.
Bruce Momjian [Thu, 8 Nov 2001 20:37:52 +0000 (20:37 +0000)]
Fix indenting for 'extern "C"' cases.

23 years agoNew pgindent run with fixes suggested by Tom. Patch manually reviewed, REL7_2_BETA2
Bruce Momjian [Mon, 5 Nov 2001 17:46:39 +0000 (17:46 +0000)]
New pgindent run with fixes suggested by Tom.  Patch manually reviewed,
initdb/regression tests pass.

23 years agoPreparation for the parameter array handling.
Hiroshi Inoue [Mon, 5 Nov 2001 10:35:14 +0000 (10:35 +0000)]
Preparation for the parameter array handling.

23 years ago1) Fix a few bugs about SQLGetData()
Hiroshi Inoue [Mon, 5 Nov 2001 09:46:17 +0000 (09:46 +0000)]
1) Fix a few bugs about SQLGetData()
   reported by Mika Mantyla.
2) Timestamp precision.
3) Separate ODBC3.0 files.

23 years ago1) Improve literal handling in parse_statement().
Hiroshi Inoue [Sat, 3 Nov 2001 06:53:50 +0000 (06:53 +0000)]
1) Improve literal handling in parse_statement().
2) Remove some no longer valid comments.
3) Fix an option dialog setting bug.
4) Fix ODBCVER handling errors.

23 years agoSuppress compiler warning (only seen in MULTIBYTE case).
Tom Lane [Fri, 2 Nov 2001 17:00:18 +0000 (17:00 +0000)]
Suppress compiler warning (only seen in MULTIBYTE case).

23 years agoSuppress a compiler warning.
Hiroshi Inoue [Wed, 31 Oct 2001 23:54:02 +0000 (23:54 +0000)]
Suppress a compiler warning.

23 years agoChange position of a check button in multibyte mode.
Hiroshi Inoue [Mon, 29 Oct 2001 02:51:46 +0000 (02:51 +0000)]
Change position of a check button in multibyte mode.

23 years agoAnother pgindent run. Fixes enum indenting, and improves #endif
Bruce Momjian [Sun, 28 Oct 2001 06:26:15 +0000 (06:26 +0000)]
Another pgindent run.  Fixes enum indenting, and improves #endif
spacing.  Also adds space for one-line comments.

23 years agopgindent run on all C files. Java run to follow. initdb/regression REL7_2_BETA1
Bruce Momjian [Thu, 25 Oct 2001 05:50:16 +0000 (05:50 +0000)]
pgindent run on all C files.  Java run to follow.  initdb/regression
tests pass.

23 years agoAdd do { ... } while (0) to more bad macros.
Bruce Momjian [Thu, 25 Oct 2001 01:29:37 +0000 (01:29 +0000)]
Add do { ... } while (0) to more bad macros.

23 years agoAdd missing "do { ... } while(0)" in ODBC macros and add find_baddefs
Bruce Momjian [Thu, 25 Oct 2001 00:50:50 +0000 (00:50 +0000)]
Add missing "do { ... } while(0)" in ODBC macros and add find_baddefs
script.

24 years agoChange SC_fetch() to not retrieve data in case the
Hiroshi Inoue [Fri, 19 Oct 2001 05:39:14 +0000 (05:39 +0000)]
Change SC_fetch() to not retrieve data in case the
SQL_RETRIEVE_DATA option is SQL_RD_OFF. This would
avoid a crash when scrolling Grid controls.

24 years agoAccept an INTERVAL argument for SET TIME ZONE per SQL99.
Thomas G. Lockhart [Thu, 18 Oct 2001 17:30:16 +0000 (17:30 +0000)]
Accept an INTERVAL argument for SET TIME ZONE per SQL99.
 Modified the parser and the SET handlers to use full Node structures
 rather than simply a character string argument.
Implement INTERVAL() YEAR TO MONTH (etc) syntax per SQL99.
 Does not yet accept the goofy string format that goes along with, but
 this should be fairly straight forward to fix now as a bug or later
 as a feature.
Implement precision for the INTERVAL() type.
 Use the typmod mechanism for both of INTERVAL features.
Fix the INTERVAL syntax in the parser:
 opt_interval was in the wrong place.
INTERVAL is now a reserved word, otherwise we get reduce/reduce errors.
Implement an explicit date_part() function for TIMETZ.
 Should fix coersion problem with INTERVAL reported by Peter E.
Fix up some error messages for date/time types.
 Use all caps for type names within message.
Fix recently introduced side-effect bug disabling 'epoch' as a recognized
 field for date_part() etc. Reported by Peter E. (??)
Bump catalog version number.
Rename "microseconds" current transaction time field
 from ...Msec to ...Usec. Duh!
date/time regression tests updated for reference platform, but a few
 changes will be necessary for others.

24 years agoFix logic in insert() function.
Peter Eisentraut [Sat, 13 Oct 2001 19:16:32 +0000 (19:16 +0000)]
Fix logic in insert() function.

24 years agoUpdate the version of psqlodbc driver.
Hiroshi Inoue [Fri, 12 Oct 2001 09:41:49 +0000 (09:41 +0000)]
Update the version of psqlodbc driver.

24 years agoFix the bug reported by Chris Lee.
Hiroshi Inoue [Fri, 12 Oct 2001 01:08:51 +0000 (01:08 +0000)]
Fix the bug reported by Chris Lee.

24 years agoAllow optional () after current_user, session_user, user, current_time,
Peter Eisentraut [Tue, 9 Oct 2001 22:32:33 +0000 (22:32 +0000)]
Allow optional () after current_user, session_user, user, current_time,
current_timestamp, current_date for ODBC compatibility.

Add more functions to odbc.sql catalog extension, use new CREATE OR
REPLACE FUNCTION.

Document iODBC/unixODBC build options.

24 years agoFix sloppiness about static vs non-static declaration of functions.
Tom Lane [Sun, 30 Sep 2001 21:48:58 +0000 (21:48 +0000)]
Fix sloppiness about static vs non-static declaration of functions.
Some compilers are pickier about this than gcc is.

24 years agoFix the bug about boolean type handling reported by
Hiroshi Inoue [Sat, 29 Sep 2001 02:48:04 +0000 (02:48 +0000)]
Fix the bug about boolean type handling reported by
Kristis Markis.

24 years ago1) Fix compile errors on Windows.
Hiroshi Inoue [Mon, 24 Sep 2001 00:05:59 +0000 (00:05 +0000)]
1) Fix compile errors on Windows.
2) Change *Common* --> *Default*.

24 years agoDon't refer to odbcinst.ini by absolute path. SQLGetPrivateProfileString
Peter Eisentraut [Sun, 23 Sep 2001 13:32:24 +0000 (13:32 +0000)]
Don't refer to odbcinst.ini by absolute path.  SQLGetPrivateProfileString
handles this.

Don't install our own odbcinst.ini.  That's the driver manager's business.

24 years agoProvide some initial support for building the ODBC driver for
Peter Eisentraut [Sat, 22 Sep 2001 22:54:33 +0000 (22:54 +0000)]
Provide some initial support for building the ODBC driver for
an already installed iODBC or unixODBC driver manager.  In particular,
use the include files provided by the driver manager over our own,
and use the odbcinst library of the driver manager rather than gpps.c.

Migrate portability sections common to several files into psqlodbc.h.

24 years ago1) Avoid an overflow of connection string for Access(Microsoft Jet).
Hiroshi Inoue [Fri, 21 Sep 2001 07:51:52 +0000 (07:51 +0000)]
1) Avoid an overflow of connection string for Access(Microsoft Jet).
2) Change to retry lower version in case of "Unsupported frontend
procotol".

24 years agoChange an *if condition*.
Hiroshi Inoue [Fri, 14 Sep 2001 06:46:45 +0000 (06:46 +0000)]
Change an *if condition*.

Hiroshi Inoue

24 years ago1) Improve the implementation of *Disallow Premature* for
Hiroshi Inoue [Fri, 14 Sep 2001 06:30:37 +0000 (06:30 +0000)]
1) Improve the implementation of *Disallow Premature* for
   older versions of servers.
2) Implement SQLProcedures.

Hiroshi Inoue

24 years agoFix a coversation error with pre 6.4 versions.
Hiroshi Inoue [Fri, 14 Sep 2001 01:50:33 +0000 (01:50 +0000)]
Fix a coversation error with pre 6.4 versions.

Hiroshi Inoue

24 years agoAdd missing paren to ODBC compiles.
Bruce Momjian [Thu, 13 Sep 2001 22:39:29 +0000 (22:39 +0000)]
Add missing paren to ODBC compiles.

24 years ago1) Not export ODBC 3.0 functions.
Hiroshi Inoue [Thu, 13 Sep 2001 00:27:11 +0000 (00:27 +0000)]
1) Not export ODBC 3.0 functions.
2) (Maybe) fix a bug reported by Mika Muntila.

24 years agoLink ODBC driver with -lnsl and -lsocket, for Solaris.
Peter Eisentraut [Tue, 11 Sep 2001 23:27:10 +0000 (23:27 +0000)]
Link ODBC driver with -lnsl and -lsocket, for Solaris.

reported by Bob Deblier (bob@virtualunlimited.com)