psqlodbc.git
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.

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

24 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.

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

24 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.

24 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.

24 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.

24 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.

24 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.

24 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.

24 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.

24 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).

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

24 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.

24 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.

24 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.

24 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.

24 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)

24 years agoFix some multibyte related bugs.
Hiroshi Inoue [Tue, 11 Sep 2001 06:39:20 +0000 (06:39 +0000)]
Fix some multibyte related bugs.
Psqlodbc is 7.01.0007 now.

Hiroshi Inoue

24 years agoChange dialog windows.
Hiroshi Inoue [Mon, 10 Sep 2001 10:13:30 +0000 (10:13 +0000)]
Change dialog windows.

24 years ago1) Fix SQLForeignKeys() in multibyte mode.
Hiroshi Inoue [Mon, 10 Sep 2001 08:53:27 +0000 (08:53 +0000)]
1) Fix SQLForeignKeys() in multibyte mode.
2) Fix a bug with NUMERIC scale in case of Parse
  statement option.
3) Remove a no longer needed loop in CC_send_query().

Hiroshi Inoue

24 years agoImprove declare/fetch mode a little.
Hiroshi Inoue [Sat, 8 Sep 2001 16:20:16 +0000 (16:20 +0000)]
Improve declare/fetch mode a little.
Add a new DSN option for PREPARE hadling.

Hiroshi Inoue

24 years agoMove updateCommon() into Win32 block because it is only used there.
Bruce Momjian [Sat, 8 Sep 2001 02:48:53 +0000 (02:48 +0000)]
Move updateCommon() into Win32 block because it is only used there.

24 years agoResolve compile errors on unix.
Hiroshi Inoue [Sat, 8 Sep 2001 02:28:41 +0000 (02:28 +0000)]
Resolve compile errors on unix.
Rename psqlodbc.def -> psqlodbc_win32.def.
Improve internal *declare cursor* handling
a little.

Hiroshi Inoue

24 years ago1) Most driver options could be set per DSN.
Hiroshi Inoue [Fri, 7 Sep 2001 06:02:24 +0000 (06:02 +0000)]
1) Most driver options could be set per DSN.
2) Keep FE/BE protocol more precisely.
3) Improve procedure calls.
4) A trial to avoid PREMATURE execution(#ifdef'd now).

Hiroshi Inoue

24 years agoFix Karel's patch. Suggested by Eiji Tokuya
Tatsuo Ishii [Thu, 6 Sep 2001 05:01:38 +0000 (05:01 +0000)]
Fix Karel's patch. Suggested by Eiji Tokuya

24 years agoCommit Karel's patch.
Tatsuo Ishii [Thu, 6 Sep 2001 04:57:30 +0000 (04:57 +0000)]
Commit Karel's patch.

-------------------------------------------------------------------
Subject: Re: [PATCHES] encoding names
From: Karel Zak <zakkr@zf.jcu.cz>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-patches <pgsql-patches@postgresql.org>
Date: Fri, 31 Aug 2001 17:24:38 +0200

On Thu, Aug 30, 2001 at 01:30:40AM +0200, Peter Eisentraut wrote:
> >  - convert encoding 'name' to 'id'
>
> I thought we decided not to add functions returning "new" names until we
> know exactly what the new names should be, and pending schema

 Ok, the patch not to add functions.

> better
>
>     ...(): encoding name too long

 Fixed.

 I found new bug in command/variable.c in parse_client_encoding(), nobody
probably never see this error:

if (pg_set_client_encoding(encoding))
{
elog(ERROR, "Conversion between %s and %s is not supported",
                     value, GetDatabaseEncodingName());
}

because pg_set_client_encoding() returns -1 for error and 0 as true.
It's fixed too.

 IMHO it can be apply.

Karel
PS:

    * following files are renamed:

src/utils/mb/Unicode/KOI8_to_utf8.map  -->
        src/utils/mb/Unicode/koi8r_to_utf8.map

src/utils/mb/Unicode/WIN_to_utf8.map  -->
        src/utils/mb/Unicode/win1251_to_utf8.map

src/utils/mb/Unicode/utf8_to_KOI8.map -->
        src/utils/mb/Unicode/utf8_to_koi8r.map

src/utils/mb/Unicode/utf8_to_WIN.map -->
        src/utils/mb/Unicode/utf8_to_win1251.map

   * new file:

src/utils/mb/encname.c

   * removed file:

src/utils/mb/common.c

--
 Karel Zak  <zakkr@zf.jcu.cz>
 http://home.zf.jcu.cz/~zakkr/

 C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz

24 years agoFix a wrong error handling.
Hiroshi Inoue [Tue, 28 Aug 2001 05:52:13 +0000 (05:52 +0000)]
Fix a wrong error handling.

24 years agoDo not install the odbc header files, per discussion on odbc list.
Peter Eisentraut [Mon, 27 Aug 2001 00:38:55 +0000 (00:38 +0000)]
Do not install the odbc header files, per discussion on odbc list.

24 years agoFix a complie error on Windows platform.
Hiroshi Inoue [Mon, 27 Aug 2001 00:18:03 +0000 (00:18 +0000)]
Fix a complie error on Windows platform.

24 years agoRename config.h to pg_config.h and os.h to pg_config_os.h, fix a number of
Peter Eisentraut [Fri, 24 Aug 2001 14:07:50 +0000 (14:07 +0000)]
Rename config.h to pg_config.h and os.h to pg_config_os.h, fix a number of
places that were including the wrong files.

24 years agoFix a lot of compile errors on unix.
Hiroshi Inoue [Tue, 21 Aug 2001 05:21:09 +0000 (05:21 +0000)]
Fix a lot of compile errors on unix.
Fix '\\' handling for bytea type.

24 years agoAdd SCM_CREDS to get owner of unix-domain socket on BSD-like systems.
Bruce Momjian [Tue, 21 Aug 2001 00:33:28 +0000 (00:33 +0000)]
Add SCM_CREDS to get owner of unix-domain socket on BSD-like systems.

24 years ago1) Change all internal SQL function calls from
Hiroshi Inoue [Sat, 18 Aug 2001 04:30:47 +0000 (04:30 +0000)]
1) Change all internal SQL function calls from
   SQLxxxx() to PGAPI_xxxx().
2) Handle an escaped date/time format as a parameter.
3) Improve the tuple allocation a little.
4) The preparation of ODBC 3.0 a little.
5) Updatable cursors(may be deprecated before long).

24 years agoAdd 4-byte MD5 salt.
Bruce Momjian [Fri, 17 Aug 2001 02:59:20 +0000 (02:59 +0000)]
Add 4-byte MD5 salt.

24 years agoUse MD5 for wire protocol encryption for >= 7.2 client/server.
Bruce Momjian [Wed, 15 Aug 2001 18:42:16 +0000 (18:42 +0000)]
Use MD5 for wire protocol encryption for >= 7.2 client/server.
Allow pg_shadow to be MD5 encrypted.
Add ENCRYPTED/UNENCRYPTED option to CREATE/ALTER user.
Add password_encryption postgresql.conf option.
Update wire protocol version to 2.1.

24 years agoAdd new files for the preparation.
Hiroshi Inoue [Fri, 10 Aug 2001 01:24:15 +0000 (01:24 +0000)]
Add new files for the preparation.

24 years ago> 1) When a row is retrieved, and then a SQL_FETCH_FIRST is issued, the
Bruce Momjian [Sat, 4 Aug 2001 19:33:49 +0000 (19:33 +0000)]
> 1) When a row is retrieved, and then a SQL_FETCH_FIRST is issued, the
check
> in convert.c
> does not consider the fact that the value in the field has been altered to
> be a '1' if the
> backend handed it a 't'.  The net result being that the first row on any
> subsequent queries
> has all it's boolean set to 0.

Aidan Mountford

24 years agoHandle Procedure calls.
Hiroshi Inoue [Wed, 27 Jun 2001 07:38:07 +0000 (07:38 +0000)]
Handle Procedure calls.
Now the version is 7.01.0006.

24 years agoChange SQLPrimaryKeys() so that it detects the primary key
Hiroshi Inoue [Fri, 22 Jun 2001 05:59:43 +0000 (05:59 +0000)]
Change SQLPrimaryKeys() so that it detects the primary key
other than tablename_pkey.

24 years agoChange the driver so that large error messages are returned
Hiroshi Inoue [Wed, 20 Jun 2001 07:06:40 +0000 (07:06 +0000)]
Change the driver so that large error messages are returned
by multiple SQLError calls.

24 years agoCorrected the check for *message truncated* for the future use.
Hiroshi Inoue [Tue, 19 Jun 2001 03:17:12 +0000 (03:17 +0000)]
Corrected the check for *message truncated* for the future use.

24 years agoChanged the error handling as follows.
Hiroshi Inoue [Tue, 19 Jun 2001 02:17:06 +0000 (02:17 +0000)]
Changed the error handling as follows.
1) ERRORs cause an SQL_ERROR and the SQLSTATE='S1000'.
2) NOTICEs cause an SQL_SUCCESS_WITH_INFO and the succeeding
   SQLError() returns the NOTICE message.

24 years agoFix *escape* handling in copy_statement_with_parameters(was my fault).
Hiroshi Inoue [Mon, 18 Jun 2001 02:16:09 +0000 (02:16 +0000)]
Fix *escape* handling in copy_statement_with_parameters(was my fault).

24 years agoFix compile error caused by patch application.
Bruce Momjian [Tue, 12 Jun 2001 21:51:27 +0000 (21:51 +0000)]
Fix compile error caused by patch application.

24 years agoI installed postgres 7.1 with --enable-odbc. I then installed
Bruce Momjian [Tue, 12 Jun 2001 15:14:47 +0000 (15:14 +0000)]
I installed postgres 7.1 with --enable-odbc.  I then installed
tclodbc (http://sourceforge.net/projects/tclodbc) and libiodbc-2.50.3
(http://www.iodbc.org/dist/libiodbc-2.50.3.tar.gz).  I could not
get either to work... postgres would not find the global odbcinst.ini
file.  I traced this to src/interfaces/odbc/gpps.c -- here are the
many things I think are wrong:

Run tclodbc and do a ``database db <DSNname>'' where ``DSNname'' is
one of the DSN's in /usr/local/etc/odbcinst.ini (or wherever the
global ini file is installed.)  The result is always the error
message that ``one of server,port,database,etc. are missing''.

Run libiodbc-2.50.3/samples/odbctest <DSNname>.  The command fails
to connect to the database and just exits.

Dave Bodenstab

24 years agoRemove OLD_FILE_NAMING code. No longer used.
Bruce Momjian [Wed, 30 May 2001 20:52:34 +0000 (20:52 +0000)]
Remove OLD_FILE_NAMING code.  No longer used.

24 years agoGet rid of the following size limit.
Hiroshi Inoue [Fri, 25 May 2001 08:12:32 +0000 (08:12 +0000)]
Get rid of the following size limit.
1) Query size limit(was 65536) for >=7.0 servers.
2) Text size limit(was 8190) for 7.1 servers.

24 years ago1) Decrease the size of some buffers.
Hiroshi Inoue [Thu, 17 May 2001 02:56:37 +0000 (02:56 +0000)]
1) Decrease the size of some buffers.
2) Repair broken SQLStatistics().

24 years agoAdd missing paren.
Bruce Momjian [Wed, 16 May 2001 22:36:03 +0000 (22:36 +0000)]
Add missing paren.

24 years agoFix for HASH for index lookups in ODBC.
Bruce Momjian [Wed, 16 May 2001 17:47:27 +0000 (17:47 +0000)]
Fix for HASH for index lookups in ODBC.

24 years agoRemove columns pg_index.haskeytype and pg_index.indisclustered. Not used.
Bruce Momjian [Mon, 14 May 2001 21:53:16 +0000 (21:53 +0000)]
Remove columns pg_index.haskeytype and pg_index.indisclustered.  Not used.

24 years agoStamp CVS as 7.2. Update all interface version numbers. This is the
Bruce Momjian [Fri, 11 May 2001 01:46:33 +0000 (01:46 +0000)]
Stamp CVS as 7.2.  Update all interface version numbers.  This is the
time to do it, not during beta because people are using this stuff in
production sometimes.

24 years agoRun pgindent on ODBC code only, to reformat new comments.
Bruce Momjian [Tue, 8 May 2001 17:12:36 +0000 (17:12 +0000)]
Run pgindent on ODBC code only, to reformat new comments.

24 years agoODBC source code cleanup patch. Should match rest of PostgreSQL code better.
Bruce Momjian [Tue, 8 May 2001 17:06:18 +0000 (17:06 +0000)]
ODBC source code cleanup patch.  Should match rest of PostgreSQL code better.

24 years agoBTW it does not add encodign it just patches existing one (KOI8) to REL7_1_STABLE REL7_1_2
Bruce Momjian [Thu, 3 May 2001 21:38:45 +0000 (21:38 +0000)]
BTW it does not add encodign it just patches existing one (KOI8) to
support two - KOI8-R and KOI8-U (latter is superset of the former if
not to take to the account pseudographics)

Andy Rysin