psqlodbc.git
6 years agoSince commit 778571, SQLGetTypeInfo() filters SQL_TYPE_DATE, SQL_TYPE_TIME and SQL_TY...
Hiroshi Inoue [Thu, 25 Jul 2019 03:51:13 +0000 (12:51 +0900)]
Since commit 778571, SQLGetTypeInfo() filters SQL_TYPE_DATE, SQL_TYPE_TIME and SQL_TYPE_TIMESTAMP for ODBC 2.x applications. However it isn't appropriate to filter them for individual SQLGetTypeInfo(.., SQL_DATE/TIME/TIMESTAMP(9/10/11)) call because  Microsoft ODBC driver manager calls SQLGetTypeInfo(.., SQL_TYPE_DATE/TIME/TIMESTAMP(91/92/93)) of ODBC 3.x drivers when ODBC 2.x applications call SQLGetTypeInfo(.., SQL_DATE/TIME/TIMESTAMP(9/10/11)).
Per report from Michael Riksman.

6 years agoFix the bug that SQLGetDescField() for Field SQL_DESC_COUNT returns SQLINTEGER value...
Hiroshi Inoue [Thu, 27 Jun 2019 12:35:42 +0000 (21:35 +0900)]
Fix the bug that SQLGetDescField() for Field SQL_DESC_COUNT returns SQLINTEGER value which should be of type SQLSMALLINT.

6 years agoPrep release 11.01.0000 REL-11_01_0000
Hiroshi Saito [Fri, 24 May 2019 14:00:08 +0000 (23:00 +0900)]
Prep release 11.01.0000

6 years agoFix test_connection() in setup.c so that settings of conn_settings and pqopt option...
Hiroshi Inoue [Sun, 19 May 2019 04:09:31 +0000 (13:09 +0900)]
Fix test_connection() in setup.c so that settings of conn_settings and pqopt option are reflected properly.

6 years agoBug fix: don't forget to set parameter numbers while handling escaped ODBC
Hiroshi Inoue [Sun, 19 May 2019 03:55:16 +0000 (12:55 +0900)]
Bug fix: don't forget to set parameter numbers while handling escaped ODBC
functions.
Report and patch by Grant Shirreiffs.

6 years agoCorrect the rgbInfoValue returned by SQLGetInfo(.., SQL_NUMERIC_FUNCTIONS(SQL_SYSTEM_...
Hiroshi Inoue [Wed, 15 May 2019 11:58:08 +0000 (20:58 +0900)]
Correct the rgbInfoValue returned by SQLGetInfo(.., SQL_NUMERIC_FUNCTIONS(SQL_SYSTEM_FUNCTIONS or SQL_STRING_FUNCTIONS, ..).
Pointed out by Grant Shirreffs.

6 years agoFix a typo in SQLForeignKeys-ResultSet-Column.
Hiroshi Inoue [Wed, 1 May 2019 01:32:09 +0000 (10:32 +0900)]
Fix a typo in SQLForeignKeys-ResultSet-Column.
'deferrablity' should be 'DEFERRABILITY'.
Report from Alexander Roskamp.

6 years agoCorrect the rgbInfoValue returned by SQLGetInfo(SQL_LIKE_ESCAPE_CLAUSE, ..).
Hiroshi Inoue [Mon, 29 Apr 2019 11:19:44 +0000 (20:19 +0900)]
Correct the rgbInfoValue returned by SQLGetInfo(SQL_LIKE_ESCAPE_CLAUSE, ..).
Pointed out by Grant Shirreffs.

6 years agoRegister drivers {PostgreSQL ANSI} and {PostgreSQL Unicode} during installation on...
Hiroshi Inoue [Mon, 29 Apr 2019 01:04:58 +0000 (10:04 +0900)]
Register drivers {PostgreSQL ANSI} and {PostgreSQL Unicode} during installation on 64bit Windows so that users could use the same connection strings in both x86 and x64 environments.
Per report from Grant Shirreffs.

6 years agoBecause the field 'relhasoids' was dropped in PG12, psqlodbc drivers would have some...
Hiroshi Inoue [Sun, 28 Apr 2019 04:13:26 +0000 (13:13 +0900)]
Because the field 'relhasoids' was dropped in PG12, psqlodbc drivers would have some troubles with PG12 servers.
Report and patch by Vladimir Koković.

6 years agoCorrect the rgbInfoValue returned by SQLGetInfo(SQL_TIMEDATE_FUNCTIONS, ..).
Hiroshi Inoue [Fri, 29 Mar 2019 07:35:22 +0000 (16:35 +0900)]
Correct the rgbInfoValue returned by SQLGetInfo(SQL_TIMEDATE_FUNCTIONS, ..).
Pointed out by Song X. Gao.

6 years agoPrep release 11.00.0000. REL-11_00_0000
Hiroshi Saito [Sat, 17 Nov 2018 13:18:33 +0000 (22:18 +0900)]
Prep release 11.00.0000.

6 years agoFix a bug that SQLSpecialColumns() returns oid/xmin incorrectly when a table does...
Hiroshi Inoue [Tue, 13 Nov 2018 11:04:05 +0000 (20:04 +0900)]
Fix a bug that SQLSpecialColumns() returns oid/xmin incorrectly when a table does not exist.
Patch by Quan Zongliang.

6 years agoChange the default platform parameter from "x64" to "both" in Windows regression...
Hiroshi Inoue [Sat, 10 Nov 2018 00:46:32 +0000 (09:46 +0900)]
Change the default platform parameter from "x64" to "both" in Windows regression test.

6 years agoDocumentation fix.
Hiroshi Inoue [Wed, 7 Nov 2018 06:11:51 +0000 (15:11 +0900)]
Documentation fix.

6 years agoIn Postgresql, numeric items without precision are unlimited and there's no natural...
Hiroshi Inoue [Mon, 5 Nov 2018 05:39:49 +0000 (14:39 +0900)]
In Postgresql, numeric items without precision are unlimited and there's no natural map between SQL Data types.
Add an option *Numeric(without precision) as*.

6 years agoThe Windows binaries of next release will be built using Visual Studio 2017.
Hiroshi Inoue [Sat, 3 Nov 2018 10:27:27 +0000 (19:27 +0900)]
The Windows binaries of next release will be built using Visual Studio 2017.

6 years agoFix a bug caused by the previous commit e7be9779ba98b14d4c694acf87c83122780cfa67.
Hiroshi Inoue [Sat, 3 Nov 2018 05:09:09 +0000 (14:09 +0900)]
Fix a bug caused by the previous commit e7be9779ba98b14d4c694acf87c83122780cfa67.
Also use a macro MYLOG() instead of function mylog().

6 years agoAdd an alias DX of *Database* keyword for connection strings to aviod the use of...
Hiroshi Inoue [Sun, 28 Oct 2018 03:45:56 +0000 (12:45 +0900)]
Add an alias DX of *Database* keyword for connection strings to aviod the use of "database" keyword which has a special meaning in some apps or middlewares..

6 years agoUnbuffered-IO in Windows is incredibly slow. Instead call fflush() after fprintf().
Hiroshi Inoue [Fri, 26 Oct 2018 05:15:22 +0000 (14:15 +0900)]
Unbuffered-IO in Windows is incredibly slow. Instead call fflush() after fprintf().

6 years agoFix the regression test failure in odbc-escapes caused by the commit 499fb29b80cfaf60...
Hiroshi Inoue [Fri, 26 Oct 2018 03:12:25 +0000 (12:12 +0900)]
Fix the regression test failure in odbc-escapes caused by the commit 499fb29b80cfaf60fffd81549b36ec2def1cf21d.
The parameters should be cast because parameters of concat() function are variadic "any".

6 years agoIncrease the number of choices for "diff" commands in Windows.
Hiroshi Inoue [Sun, 21 Oct 2018 02:59:42 +0000 (11:59 +0900)]
Increase the number of choices for "diff" commands in Windows.

6 years agoIgnore BOM(byte order mark)s when there are BOMs in the input lines of test/reset-db.
Hiroshi Inoue [Sat, 20 Oct 2018 23:38:02 +0000 (08:38 +0900)]
Ignore BOM(byte order mark)s when there are BOMs in the input lines of test/reset-db.

6 years agoAdded shell scripts to build binaries, test and build installers for Windows under...
Hiroshi Inoue [Fri, 19 Oct 2018 02:04:15 +0000 (11:04 +0900)]
Added shell scripts to build binaries, test and build installers for Windows under WSL(Windows Sybsystem for Linux) or cygwin environment.

6 years agoAdd an option to reinstall the driver.
Hiroshi Inoue [Fri, 19 Oct 2018 01:32:17 +0000 (10:32 +0900)]
Add an option to reinstall the driver.

6 years agoMake it possible to separate object trees x86_ANSI_Release, x86_Unicode_Release,...
Hiroshi Inoue [Fri, 19 Oct 2018 01:15:58 +0000 (10:15 +0900)]
Make it possible to separate object trees x86_ANSI_Release, x86_Unicode_Release, x64_ANSI_Release, x64_Unicode_Release, winbuild/test_x86, winbuild/test_x64, installer/x86, installer/x64, installer/psqlodbc-setup/obj and installer/psqlodbc-setup/bin from source tree on Windows.

7 years agoRemove connSettings option and/or pqopt option from the OutConnectionString parameter...
Hiroshi Inoue [Wed, 26 Sep 2018 22:59:45 +0000 (07:59 +0900)]
Remove connSettings option and/or pqopt option from the OutConnectionString parameter of SQLDriverConnect() when each option doesn't exist in InConnectionString parameter.

7 years agoRemove obsolete maps pointed out by Daniel Cory <dcory@tableau.com>.
Hiroshi Inoue [Wed, 26 Sep 2018 13:05:19 +0000 (22:05 +0900)]
Remove obsolete maps pointed out by Daniel Cory <dcory@tableau.com>.
1. POWER -> pow
2. CONCAT -> textcat
3. LEFT -> ltrunc
4. RIGHT -> rtrunc

7 years agoReview RegisterDsn.
Hiroshi Inoue [Tue, 28 Aug 2018 05:27:48 +0000 (14:27 +0900)]
Review RegisterDsn.
1. Add a new functionality to 'check_dsn'(renamed from 'existCheck').
   This option returns 0 when dsn exists,returns -1 when dsn does not exist,
   (new) returns -2 when dsn exists but the driver doesn't exist.
2. Add 'reinstall_driver' option. This option is effective when
   'check_dsn' option returns -2.

7 years agoCorrect the path name of Visual Studio 2017 tools.
Hiroshi Inoue [Mon, 27 Aug 2018 05:37:05 +0000 (14:37 +0900)]
Correct the path name of Visual Studio 2017 tools.

7 years agoFix compiler warnings in i386-linux-gnu.
Hiroshi Inoue [Wed, 23 May 2018 10:54:38 +0000 (19:54 +0900)]
Fix compiler warnings in i386-linux-gnu.

7 years agoCall AC_CHECK_SIZEOF(long int) in configure.ac and always place config.h before sql...
Hiroshi Inoue [Wed, 23 May 2018 07:34:22 +0000 (16:34 +0900)]
Call AC_CHECK_SIZEOF(long int) in configure.ac and always place config.h before sql....h. Due to this change, sqltypes.h of unixODBC can recognize SIZEOF_LONG_INT used in psqlodbc driver.

7 years agoFix compiler warnings.
Hiroshi Inoue [Wed, 23 May 2018 03:54:42 +0000 (12:54 +0900)]
Fix compiler warnings.

7 years agoodbc_config is often missing in ubuntu.
Hiroshi Inoue [Tue, 22 May 2018 03:57:58 +0000 (12:57 +0900)]
odbc_config is often missing in ubuntu.
In those cases you can try
configure --with-unixodbc=__without_odbc_config
. If necessary, configure with LDFLAGS and/or CPPFLAGS e.g.
configure "LDFLAGS=-L /usr/lib/x86_64/linux/gnu" --with-unixodbc=__without_odbc_config
.

7 years agoCreate an output variable from a shell variable ODBCLIB using AC_SUBST() in configure...
Hiroshi Inoue [Mon, 21 May 2018 22:04:31 +0000 (07:04 +0900)]
Create an output variable from a shell variable ODBCLIB using AC_SUBST() in configure.ac. The variable is used in test/Makefile.in.

7 years agoPrep release 10.03.0000 REL-10_03_0000
Hiroshi Saito [Sat, 19 May 2018 10:59:07 +0000 (19:59 +0900)]
Prep release 10.03.0000

7 years agoReduce DB access to pg_class or pg_index by caching relhasoids, relhassubclass etc.
Hiroshi Inoue [Thu, 17 May 2018 03:05:25 +0000 (12:05 +0900)]
Reduce DB access to pg_class or pg_index by caching relhasoids, relhassubclass etc.
It would improve the performance of SQLSetPos() or SQLBulkOperations() very much in some cases.
Per report from Takayuki Tsunakawa.

7 years agoAdd a parameter SpecificDsn of regress.ps1.
Hiroshi Inoue [Sun, 13 May 2018 11:58:06 +0000 (20:58 +0900)]
Add a parameter SpecificDsn of regress.ps1.

7 years agofix build on Solaris using Solaris Studio
Maxim Zakharov [Fri, 11 May 2018 08:36:58 +0000 (18:36 +1000)]
fix build on Solaris using Solaris Studio

7 years agoFix some typos in help messages of regrees.ps1.
Hiroshi Inoue [Sat, 12 May 2018 12:51:51 +0000 (21:51 +0900)]
Fix some typos in help messages of regrees.ps1.
Also cleanup the handling of DeclareFetch parameter a little.

7 years agoLet SQLTables() or SQLTablePrivileges() show partition tables.
Hiroshi Inoue [Sat, 12 May 2018 04:00:33 +0000 (13:00 +0900)]
Let SQLTables() or SQLTablePrivileges() show partition tables.

7 years agoFix a crash bug when handling error messages.
Hiroshi Inoue [Fri, 11 May 2018 09:42:08 +0000 (18:42 +0900)]
Fix a crash bug when handling error messages.
Also modified some error messages.

7 years agoRevise ConfigDSN() so that it handles the 4th parameter(lpszAttribues) correctly.
Hiroshi Inoue [Wed, 2 May 2018 02:35:35 +0000 (11:35 +0900)]
Revise ConfigDSN() so that it handles the 4th parameter(lpszAttribues) correctly.
Per report from Haribabu Kommi.

7 years agoFix SQLGetTypeInfo() so that it filters SQL_TYPE_DATE, SQL_TYPE_TIME or SQL_TYPE_TIME...
Hiroshi Inoue [Wed, 2 May 2018 02:09:30 +0000 (11:09 +0900)]
Fix SQLGetTypeInfo() so that it filters SQL_TYPE_DATE, SQL_TYPE_TIME or SQL_TYPE_TIMESTAMP for ODBC 2.x applications.
Per report from Oleg Tonkikh.

7 years agoPut back the handling of lock_CC_for_rb variable.
Hiroshi Inoue [Wed, 18 Apr 2018 08:52:58 +0000 (17:52 +0900)]
Put back the handling of lock_CC_for_rb variable.
The variable lock_CC_for_rb should be held per connection.
Per report from Ayman Samamry.

7 years agoFixed typo..
Hiroshi Saito [Fri, 30 Mar 2018 14:36:58 +0000 (23:36 +0900)]
Fixed typo..

7 years agoPrep release 10.02.0000 REL-10_02_0000
Hiroshi Saito [Fri, 30 Mar 2018 14:06:14 +0000 (23:06 +0900)]
Prep release 10.02.0000

7 years agoFix a crash bug in AddDeleted().
Hiroshi Inoue [Tue, 27 Mar 2018 08:38:50 +0000 (17:38 +0900)]
Fix a crash bug in AddDeleted().
Report and patch by Takayuki Tsunakawa.

7 years agoMake SQLSetPos(SQL_DELETE/SQL_REFRESH) more effective.
Hiroshi Inoue [Tue, 27 Mar 2018 02:08:42 +0000 (11:08 +0900)]
Make SQLSetPos(SQL_DELETE/SQL_REFRESH) more effective.
Because queries calling currtid(2) like
select .. from .. where ctid=currtid2(.., ..)
cause Seq Scan, their execution may be very slow.
It is better to execute queries using subqueries like
select .. from .. where ctid=(select currtid2(.., ..))
because they cause Tid Scan.
Report and changes by Tsunakawa Takayuki.

7 years agoHandle MALLOC/REALLOC errors while fetching tuples more effectively.
Hiroshi Inoue [Mon, 26 Mar 2018 14:34:05 +0000 (23:34 +0900)]
Handle MALLOC/REALLOC errors while fetching tuples more effectively.
Per report from Haruka Takatsuka.

7 years agoOops, setting *tidval* variable in SC_pos_reload_with_key() was missing by mistake.
Hiroshi Inoue [Sat, 17 Mar 2018 13:03:45 +0000 (22:03 +0900)]
Oops, setting *tidval* variable in SC_pos_reload_with_key() was missing by mistake.

7 years agoModify positioned-update-test.
Hiroshi Inoue [Mon, 26 Mar 2018 13:29:18 +0000 (22:29 +0900)]
Modify positioned-update-test.
1. Add a SQLSetPos(.., SQL_REFRESH, ..) call so that the test passes SC_pos_reload().
2. Add a primary key to pos-update-test table(KEYSET-DRIVEN cursor needs non null int4/oid unique key).
3. Add expected/positioned-update-test_1.out for KEYSET-DRIVEN cursors.

7 years agoAvoid replacing effective notice messages.
Hiroshi Inoue [Wed, 14 Feb 2018 10:32:22 +0000 (19:32 +0900)]
Avoid replacing effective notice messages.
Report from Wolfgang Apolinarski. Patch by Clemens Ladisch.

7 years agoFix build for non-gcc systems
Ayappan [Mon, 12 Mar 2018 15:03:06 +0000 (10:03 -0500)]
Fix build for non-gcc systems

7 years agoIt's safer to call setlocale(LC_CTYPE, "") than calling setlocale(LC_ALL, "").
Hiroshi Inoue [Wed, 28 Feb 2018 06:12:44 +0000 (15:12 +0900)]
It's safer to call setlocale(LC_CTYPE, "") than calling setlocale(LC_ALL, "").
Report and patch by Mario De Frutos.

7 years agoIt is not appropriate to distribute test/Makefile. REL-10_01_0000
Hiroshi Inoue [Fri, 12 Jan 2018 08:27:43 +0000 (17:27 +0900)]
It is not appropriate to distribute test/Makefile.
The file isn't in git repo and is generated depending on the environment via configure operation.

7 years agoFix a bug in is_setting_search_path. A pointer might be incremented to point beyond...
Hiroshi Inoue [Fri, 12 Jan 2018 03:26:43 +0000 (12:26 +0900)]
Fix a bug in is_setting_search_path. A pointer might be incremented to point beyond the null terminator.
Report and patch by Grant Shirreffs.

7 years agoOops, get_DocumentElement() doesn't return xml type.
Hiroshi Inoue [Sun, 31 Dec 2017 03:13:34 +0000 (12:13 +0900)]
Oops, get_DocumentElement() doesn't return xml type.

7 years agoFixed typo release document.
Hiroshi Saito [Thu, 28 Dec 2017 12:37:01 +0000 (21:37 +0900)]
Fixed typo release document.

7 years agoPrep release 10.01.0000
Hiroshi Saito [Wed, 27 Dec 2017 13:16:28 +0000 (22:16 +0900)]
Prep release 10.01.0000

7 years agoReview the level of MYLOG, QLOG.
Hiroshi Inoue [Tue, 26 Dec 2017 02:03:59 +0000 (11:03 +0900)]
Review the level of MYLOG, QLOG.
Divide *level 1(detail)* log into *level 1(tuple level)* log and *level 2(detail)* log.

7 years agoFree any data at exec params before the statement is executed again or the next set...
Hiroshi Inoue [Sat, 23 Dec 2017 23:36:00 +0000 (08:36 +0900)]
Free any data at exec params before the statement is executed again or the next set of parameters is processed. If not, then there will be a memory leak when the next SQLParamData/SQLPutData is called.
Per report from Mihai Giurgeanu <mihai.giurgeanu@gmail.com>.

7 years agoFix a bug in pgdebug_realloc().
Hiroshi Inoue [Sat, 23 Dec 2017 07:52:52 +0000 (16:52 +0900)]
Fix a bug in pgdebug_realloc().
Fix compiler warnings in inouealc.c

7 years agoUse MYLOG instead of inolog in inouealc.c .
Hiroshi Inoue [Fri, 22 Dec 2017 23:21:41 +0000 (08:21 +0900)]
Use MYLOG instead of inolog in inouealc.c .

7 years agoAdd add an option -NoPDB to buildInstallers.ps1.
Hiroshi Inoue [Thu, 23 Nov 2017 00:55:09 +0000 (09:55 +0900)]
Add add an option -NoPDB to buildInstallers.ps1.
The switch option can be specified so as to exclude PDB files from the installers.

7 years agoReview the handling of @@IDENTITY when a column's default is nextval(a_sequence)...
Hiroshi Inoue [Mon, 20 Nov 2017 10:11:14 +0000 (19:11 +0900)]
Review the handling of @@IDENTITY when a column's default is nextval(a_sequence) but the column isn't a serial. Unfortunately the function pg_get_serial_sequence() doesn't work for sequences which aren't serial type.

7 years agoFix my mistake of previous commit.
Hiroshi Inoue [Thu, 16 Nov 2017 06:11:31 +0000 (15:11 +0900)]
Fix my mistake of previous commit.

7 years agoCall Get-VSSetupInstance to detect Visual Studio installations whose version >= 15...
Hiroshi Inoue [Wed, 18 Oct 2017 02:51:30 +0000 (11:51 +0900)]
Call Get-VSSetupInstance to detect Visual Studio installations whose version >= 15 when VSSetup module is available.

7 years agoPrep version 10.00.0000! REL-10_00_0000
Hiroshi Saito [Fri, 13 Oct 2017 13:29:37 +0000 (22:29 +0900)]
Prep version 10.00.0000!

7 years agoFix the bug that 'create table T_$001 (\81c)' fails when useServerSidePrepare is turned on.
Hiroshi Inoue [Thu, 12 Oct 2017 08:02:00 +0000 (17:02 +0900)]
Fix the bug that 'create table T_$001 (\81c)' fails when useServerSidePrepare is turned on.
Per report from Gregory Pruss.

7 years agoCorrect the use of MatchInfo object which is an output of Select-String.
Hiroshi Inoue [Thu, 5 Oct 2017 13:02:01 +0000 (22:02 +0900)]
Correct the use of MatchInfo object which is an output of Select-String.

7 years agoPreparation for development with VC15(VS 2017).
Hiroshi Inoue [Wed, 4 Oct 2017 02:59:31 +0000 (11:59 +0900)]
Preparation for development with VC15(VS 2017).

8 years agoDon't forget to call resetPQExpBuffer() before processing a new query.
Hiroshi Inoue [Sat, 30 Sep 2017 00:02:22 +0000 (09:02 +0900)]
Don't forget to call resetPQExpBuffer() before processing a new query.

8 years agoUse macro IS_NOT_SPACE() instead of !isspace() to ensure that !isspace() is applied...
Hiroshi Inoue [Tue, 26 Sep 2017 22:29:44 +0000 (07:29 +0900)]
Use macro IS_NOT_SPACE() instead of !isspace() to ensure that !isspace() is applied to non-null characters.

8 years agoCorrect CC_set_error_if_not_set().
Hiroshi Inoue [Wed, 27 Sep 2017 12:53:25 +0000 (21:53 +0900)]
Correct CC_set_error_if_not_set().

8 years agoImprove the use of SC_error_copy() in info.c.
Hiroshi Inoue [Wed, 27 Sep 2017 01:37:16 +0000 (10:37 +0900)]
Improve the use of SC_error_copy() in info.c.

8 years agoImprove error handling in info.c.
Hiroshi Inoue [Sun, 24 Sep 2017 11:33:05 +0000 (20:33 +0900)]
Improve error handling in info.c.

8 years agoChange QLOG() so that it calls corresponding MYLOG() as well.
Hiroshi Inoue [Sun, 24 Sep 2017 05:55:46 +0000 (14:55 +0900)]
Change QLOG() so that it calls corresponding MYLOG() as well.

8 years agoChange the return value of strncpy_null() from char * to size_t.
Hiroshi Inoue [Sun, 24 Sep 2017 03:19:55 +0000 (12:19 +0900)]
Change the return value of strncpy_null() from char * to size_t.

8 years agoReview getNextToken() in parse.c.
Hiroshi Inoue [Sat, 23 Sep 2017 00:21:31 +0000 (09:21 +0900)]
Review getNextToken() in parse.c.

8 years agoUse pg_get_serial_sequence() to get serial sequence of identity columns or serial...
Hiroshi Inoue [Fri, 22 Sep 2017 03:46:43 +0000 (12:46 +0900)]
Use pg_get_serial_sequence() to get serial sequence of identity columns or serial columns. pg_get_serial_sequence() for identity columns became available in PG 10 rc1.

8 years agoReview the use of encoded_nextchar().
Hiroshi Inoue [Thu, 21 Sep 2017 08:32:03 +0000 (17:32 +0900)]
Review the use of encoded_nextchar().
Remove variables which work in conjunction with encstr(encoded_str) so as to avoid misleadingness.

8 years agoFix "unrecognized format function type" warnings in old GCC.
Hiroshi Inoue [Wed, 20 Sep 2017 09:52:40 +0000 (18:52 +0900)]
Fix "unrecognized format function type" warnings in old GCC.
Also use PG_PRINTF_ATTRIBUTE instead of printf in __attribute__((format(printf, .., ..))) function attribute.

8 years agoImprove @@identty handling.
Hiroshi Inoue [Mon, 18 Sep 2017 06:09:35 +0000 (15:09 +0900)]
Improve @@identty handling.
Use multibyte-aware eatTableIdentifiers() instead of next_name_token().
Use identifierEscape() to escape single quotes or double quotes.

8 years agoAdd some QLOGs.
Hiroshi Inoue [Sun, 17 Sep 2017 13:11:21 +0000 (22:11 +0900)]
Add some QLOGs.

8 years agoRemove the "unknown" column from colattribute-test regression test.
Hiroshi Inoue [Tue, 12 Sep 2017 22:50:25 +0000 (07:50 +0900)]
Remove the "unknown" column from colattribute-test regression test.
Because there's no "unknown" output column in PG10 servers, it seems meaningless to test "unknown" case.

8 years agoFor PG10 servers, we will never see "unknown" output columns.
Hiroshi Inoue [Tue, 12 Sep 2017 11:10:45 +0000 (20:10 +0900)]
For PG10 servers, we will never see "unknown" output columns.
Fix regression test catalogfunctions-test for PG10 servers.

8 years agoHandle PG 10 identity columns.
Hiroshi Inoue [Tue, 12 Sep 2017 02:55:23 +0000 (11:55 +0900)]
Handle PG 10 identity columns.

8 years agoFix multibyte handling of ansi driver.
Hiroshi Inoue [Sun, 10 Sep 2017 04:34:41 +0000 (13:34 +0900)]
Fix multibyte handling of ansi driver.

8 years agoFix a compiler warning.
Hiroshi Inoue [Fri, 8 Sep 2017 05:55:42 +0000 (14:55 +0900)]
Fix a compiler warning.

8 years agoDon't forget to set default values when registering dsn via RegisterRegDsn.
Hiroshi Inoue [Thu, 7 Sep 2017 08:12:14 +0000 (17:12 +0900)]
Don't forget to set default values when registering dsn via RegisterRegDsn.

8 years agoPrep release 09.06.0500 REL-09_06_0500
Hiroshi Saito [Tue, 5 Sep 2017 14:02:48 +0000 (23:02 +0900)]
Prep release 09.06.0500

8 years agoFix compiler warnings.
Hiroshi Inoue [Sun, 3 Sep 2017 08:22:29 +0000 (17:22 +0900)]
Fix compiler warnings.

8 years agoAllow PROCCALL in ReadOnly mode.
Hiroshi Inoue [Sun, 3 Sep 2017 05:10:14 +0000 (14:10 +0900)]
Allow PROCCALL in ReadOnly mode.
Per report from Matej Mihelic.

8 years agoMove 2 CtrlCheckButton() calls into a switch statement.
Hiroshi Inoue [Sat, 2 Sep 2017 11:30:13 +0000 (20:30 +0900)]
Move 2 CtrlCheckButton() calls into a switch statement.

8 years agoAdd __attribute__((format(printf,3,4))) to the declaration of snprintfcat().
Hiroshi Inoue [Wed, 30 Aug 2017 08:00:35 +0000 (17:00 +0900)]
Add __attribute__((format(printf,3,4))) to the declaration of snprintfcat().

8 years agoImprove QLOG.
Hiroshi Inoue [Fri, 1 Sep 2017 03:08:29 +0000 (12:08 +0900)]
Improve QLOG.

8 years agoReview ER_ReturnError().
Hiroshi Inoue [Wed, 30 Aug 2017 11:25:51 +0000 (20:25 +0900)]
Review ER_ReturnError().

8 years agoAdd level parameter to Commlog/Mylog option of setup program.
Hiroshi Inoue [Wed, 30 Aug 2017 07:05:40 +0000 (16:05 +0900)]
Add level parameter to Commlog/Mylog option of setup program.

8 years agoAdd missing type declaration of log_params().
Hiroshi Inoue [Wed, 30 Aug 2017 05:40:48 +0000 (14:40 +0900)]
Add missing type declaration of log_params().