psqlodbc.git
8 years agoReview the handling of OUTPUT parameters in SQLProcedureColumns().
Hiroshi Inoue [Wed, 19 Apr 2017 11:06:42 +0000 (20:06 +0900)]
Review the handling of OUTPUT parameters in SQLProcedureColumns().
1. If there are OUT, INOUT or TABLE arguments, ignore RETURN values.
2. OUT parameters of functions with returning SETOF should be treated as SQL_RESULT_COL rather than SQL_PARAM_OUTPUT.
3. Also treat table output arguments as SQL_RESULT_COL because functions returning table are equivalent to using one or more OUT parameters plus marking the function as returning SETOF record (or SETOF a single output parameter's type).

Also add 5 test cases about SQLProcedureColumns to catalogfunctions-test.

8 years agoModify a message a little.
Hiroshi Inoue [Sun, 23 Apr 2017 09:32:26 +0000 (18:32 +0900)]
Modify a message a little.

8 years agoCorrect the inappropriate use of set_nullfield_int2().
Hiroshi Inoue [Sun, 23 Apr 2017 05:43:18 +0000 (14:43 +0900)]
Correct the inappropriate use of set_nullfield_int2().

8 years agoDon't reset the status of Keyset in case of updates.
Hiroshi Inoue [Wed, 19 Apr 2017 02:45:16 +0000 (11:45 +0900)]
Don't reset the status of Keyset in case of updates.
This fixes the bug about repeated updates using SQLSetPos().
positioned-update-test now passes.

8 years agoError out when SQLSetPos() skips updates.
Hiroshi Inoue [Fri, 21 Apr 2017 08:03:50 +0000 (17:03 +0900)]
Error out when SQLSetPos() skips updates.

8 years agoPsqlodbc driver seems to skip repeated updates using SQLSetPos(.., SQL_UPDATE, ....
Hiroshi Inoue [Thu, 20 Apr 2017 09:38:45 +0000 (18:38 +0900)]
Psqlodbc driver seems to skip repeated updates using SQLSetPos(.., SQL_UPDATE, ..).  For the bug fix, modify positioned-update-test so that it includes repeated updates.

8 years agoFix a crash bug introduced by the previous commit.
Hiroshi Inoue [Thu, 20 Apr 2017 04:19:12 +0000 (13:19 +0900)]
Fix a crash bug introduced by the previous commit.

8 years agoAdd an environment variable which defines a common connection string for regression...
Hiroshi Inoue [Sun, 22 Jan 2017 12:05:14 +0000 (21:05 +0900)]
Add an environment variable which defines a common connection string for regression test. Switch declare/fetch mode in Windows regression test using this functionality.

8 years agoAdd __STDC_ISO_10646__ check to confirm that wchar_t means unicode.
Hiroshi Inoue [Wed, 12 Apr 2017 00:09:51 +0000 (09:09 +0900)]
Add __STDC_ISO_10646__ check to confirm that wchar_t means unicode.

8 years agoIt's bad to use lf_conv here.
Hiroshi Inoue [Mon, 3 Apr 2017 12:48:57 +0000 (21:48 +0900)]
It's bad to use lf_conv here.

8 years agoRename the dsn for ANSI regression test from psqlodbc_test_dsna to psqlodbc_test_dsn_...
Hiroshi Inoue [Sun, 2 Apr 2017 04:43:43 +0000 (13:43 +0900)]
Rename the dsn for ANSI regression test from psqlodbc_test_dsna to psqlodbc_test_dsn_ansi.

8 years agoHandle locales in non-Windows platforms and overhaule the language system.
Hiroshi Inoue [Wed, 29 Mar 2017 09:27:20 +0000 (18:27 +0900)]
Handle locales in non-Windows platforms and overhaule the language system.

8 years agoModify wchar-char test a little.
Hiroshi Inoue [Fri, 31 Mar 2017 07:42:11 +0000 (16:42 +0900)]
Modify wchar-char test a little.

8 years agoAdd a new test case wchar-char-test.
Hiroshi Inoue [Sun, 26 Mar 2017 11:59:24 +0000 (20:59 +0900)]
Add a new test case wchar-char-test.

8 years agoRemove #ifdef WIN_UNICODE_SUPPORT.
Hiroshi Inoue [Mon, 27 Mar 2017 09:48:28 +0000 (18:48 +0900)]
Remove #ifdef WIN_UNICODE_SUPPORT.

8 years agoMake a function convert_text_field_to_sql_c() simply extracting from long confusing...
Hiroshi Inoue [Fri, 24 Mar 2017 23:00:20 +0000 (08:00 +0900)]
Make a function convert_text_field_to_sql_c() simply extracting from long confusing code and clarify the parameters for subsequent modifications.

8 years agoIntroduce locale_encoding which corresponds to the locale. For non-Windows platforms...
Hiroshi Inoue [Sat, 25 Mar 2017 08:12:26 +0000 (17:12 +0900)]
Introduce locale_encoding which corresponds to the locale. For non-Windows platforms determine the locale encodings from the current locale.

8 years agoAdd #ifdef UNICODE_SUPPORT where there should be.
Hiroshi Inoue [Fri, 24 Mar 2017 02:30:58 +0000 (11:30 +0900)]
Add #ifdef UNICODE_SUPPORT where there should be.

8 years agoStop using percent-encoding to store the conn_settings option in odbc.ini.
Hiroshi Inoue [Fri, 24 Mar 2017 06:53:32 +0000 (15:53 +0900)]
Stop using percent-encoding to store the conn_settings option in odbc.ini.

8 years agoFor Unicode drivers, when SQLConnect() or SQLDriverConnect() instead of SQLConnectW...
Hiroshi Inoue [Fri, 24 Mar 2017 03:43:34 +0000 (12:43 +0900)]
For Unicode drivers, when SQLConnect() or SQLDriverConnect() instead of SQLConnectW or SQLDriverConnectW is called, use the same client encoding as ANSI version of drivers use.

8 years agoChange the max byte per char of UTF8 from 6 to 4. This affects the result of ANSI...
Hiroshi Inoue [Thu, 23 Mar 2017 08:36:12 +0000 (17:36 +0900)]
Change the max byte per char of UTF8 from 6 to 4. This affects the result of ANSI colattribute-test.

8 years agoModify odbcini-gen.sh so that it generates ANSI driver and dsn as well.
Hiroshi Inoue [Thu, 23 Mar 2017 08:59:42 +0000 (17:59 +0900)]
Modify odbcini-gen.sh so that it generates ANSI driver and dsn as well.

8 years agoGenerate psqlodbca.so(ANSI version of driver) as well as psqlodbca.so at once.
Hiroshi Inoue [Wed, 22 Mar 2017 10:12:21 +0000 (19:12 +0900)]
Generate psqlodbca.so(ANSI version of driver) as well as psqlodbca.so at once.

8 years agoRevise the handling of client encoding so as not to forget the update of related...
Hiroshi Inoue [Wed, 22 Mar 2017 04:37:09 +0000 (13:37 +0900)]
Revise the handling of client encoding so as not to forget the update of related items(ccsc or mb_maxbyte_per_char).

8 years agoSimple implementation of get_environment_setting() on non-Windows platforms.
Hiroshi Inoue [Tue, 21 Mar 2017 11:52:07 +0000 (20:52 +0900)]
Simple implementation of get_environment_setting() on non-Windows platforms.
If the codeset part of the current locale is UTF8, set the client_encoding to 'UTF8'.
Take * set client_coding='...' * into account in check_client_coding().

8 years agoFix ansi version result-conversions-test on Windows.
Hiroshi Inoue [Mon, 20 Mar 2017 12:06:04 +0000 (21:06 +0900)]
Fix ansi version result-conversions-test on Windows.

8 years agoReflect the ANSI test dsn to reset-db.
Hiroshi Inoue [Mon, 20 Mar 2017 22:57:54 +0000 (07:57 +0900)]
Reflect the ANSI test dsn to reset-db.

8 years agoFix a compilation error and remove an ununed varaible.
Hiroshi Inoue [Mon, 20 Mar 2017 12:40:02 +0000 (21:40 +0900)]
Fix a compilation error and remove an ununed varaible.

8 years agoFix a dangling reference in CC_lookup_characterset() introduced by the commit e85fbb2.
Hiroshi Inoue [Mon, 20 Mar 2017 10:05:42 +0000 (19:05 +0900)]
Fix a dangling reference in CC_lookup_characterset() introduced by the commit e85fbb2.

8 years agoThe 1st cut to add regression test for Windows Ansi drivers.
Hiroshi Inoue [Sun, 19 Mar 2017 13:00:41 +0000 (22:00 +0900)]
The 1st cut to add regression test for Windows Ansi drivers.

8 years agoRemove unnecessary code from Unicode drivers.
Hiroshi Inoue [Mon, 20 Mar 2017 01:06:14 +0000 (10:06 +0900)]
Remove unnecessary code from Unicode drivers.

8 years agoFix a bug about Unicode driver for ansi apps.
Hiroshi Inoue [Mon, 20 Mar 2017 00:26:00 +0000 (09:26 +0900)]
Fix a bug about Unicode driver for ansi apps.

8 years agoFixes about SQLDescribeCol() or SQLColAttribute().
Hiroshi Inoue [Sun, 19 Mar 2017 06:04:47 +0000 (15:04 +0900)]
Fixes about SQLDescribeCol() or SQLColAttribute().
1. Report the size of constant strings using Unknown Sizes as Longest.
2. Correct the inconsistency between the sqltype of PG_TYPE_TEXT or PG_TYPE_UNKNOWN and the size in case of Unknown Sizes as Longeset.

8 years agoRemove obsolete code in statement.c.
Hiroshi Inoue [Sat, 18 Mar 2017 23:12:40 +0000 (08:12 +0900)]
Remove obsolete code in statement.c.

8 years agoUse symbols defined in catfunc.h instead of literal column numbers in SQLGetTypeInfo...
Hiroshi Inoue [Sat, 18 Mar 2017 07:04:55 +0000 (16:04 +0900)]
Use symbols defined in catfunc.h instead of literal column numbers in SQLGetTypeInfo(), SQLSpecialColumns() and SQLTablePrivileges().

8 years agoRemove UNKNOWNS_AS_CATALOG of Unknown Sizes option.
Hiroshi Inoue [Sat, 18 Mar 2017 05:11:03 +0000 (14:11 +0900)]
Remove UNKNOWNS_AS_CATALOG of Unknown Sizes option.
Also remove test case in colattribute-test corresponding to UNKNOWNS_AS_CATALOG.

8 years agoRevise the use of pgtype_xxxx() in catalog functions.
Hiroshi Inoue [Sat, 18 Mar 2017 01:41:06 +0000 (10:41 +0900)]
Revise the use of pgtype_xxxx() in catalog functions.
Replace pgtype_xxxx() whose 1st parameter is StatementClass with pgtype_attr_xxxx(). Also use macros for pgtype_xxxx() calls which have PG_ATP_UNSET, PG_ADT_UNSET or PG_UNKNOWNS_UNSET parameters.
Remove the use of PG_STATIC and UNKNOWNS_AS_DEFAULT.
Remove the test case in colattribute-test corresponding to UNKNOWNS_AS_DEFAULT. The test case was meaningless in the first place.

8 years agoRevise the handling of show oid column and row versioning option.
Hiroshi Inoue [Fri, 17 Mar 2017 11:21:16 +0000 (20:21 +0900)]
Revise the handling of show oid column and row versioning option.

8 years agoModify the code about UNKNOWNS_AS_LONGEST of the Unknown Sizes option so that it...
Hiroshi Inoue [Wed, 15 Mar 2017 07:17:03 +0000 (16:17 +0900)]
Modify the code about UNKNOWNS_AS_LONGEST of the Unknown Sizes option so that it works properly.

8 years agoRemove obsolete code in pgtypes.c.
Hiroshi Inoue [Thu, 16 Mar 2017 09:44:08 +0000 (18:44 +0900)]
Remove obsolete code in pgtypes.c.

8 years agoRemove obsolete code in info.c.
Hiroshi Inoue [Thu, 16 Mar 2017 02:13:17 +0000 (11:13 +0900)]
Remove obsolete code in info.c.

8 years agoFor debug, implement SQLSet/GetConnectAttr() for some driver specific options.
Hiroshi Inoue [Mon, 13 Mar 2017 11:47:27 +0000 (20:47 +0900)]
For debug, implement SQLSet/GetConnectAttr() for some driver specific options.

8 years agoPrep release 09.06.0200 REL-09_06_0200
Hiroshi Saito [Fri, 10 Mar 2017 15:14:15 +0000 (00:14 +0900)]
Prep release 09.06.0200

8 years agoStop specifying parameter datatype oids in parse message. Unfortunately it is inflexi...
Hiroshi Inoue [Sat, 4 Mar 2017 12:45:47 +0000 (21:45 +0900)]
Stop specifying parameter datatype oids in parse message. Unfortunately it is inflexible and rather harmful. Though I don't know if it has much meaning, use cast instead just in order to keep regression test results.
It's not necessary to cast any more the 2nd parameter of {call a_b_c_d_e(?, ?, ?, ?, ?)} in odbc-escapes-test.

8 years agoFix regression test failures in diagnostic-test.
Hiroshi Inoue [Wed, 8 Mar 2017 03:54:16 +0000 (12:54 +0900)]
Fix regression test failures in diagnostic-test.

8 years agoUse 1/0 instead of TRUE/FALSE in test/src/odbc-escape-test.c.
Hiroshi Inoue [Wed, 8 Mar 2017 03:56:00 +0000 (12:56 +0900)]
Use 1/0 instead of TRUE/FALSE in test/src/odbc-escape-test.c.
TRUE/FALSE is not usable in some platforms.

8 years agoRevise recent lost connection check.
Hiroshi Inoue [Sun, 5 Mar 2017 13:26:53 +0000 (22:26 +0900)]
Revise recent lost connection check.
Check the lost connection
1. at the beginning of ODBC APIs.
2. at the beginning of FE-BE communications using extended protocol.

8 years agoRemove upgrade(_x64).bat.
Hiroshi Inoue [Sun, 5 Mar 2017 12:11:16 +0000 (21:11 +0900)]
Remove upgrade(_x64).bat.
It's useless anymore.

8 years agoOops the implementation of SC_set_error_if_not_set() is terribly wrong.
Hiroshi Inoue [Mon, 6 Mar 2017 03:22:02 +0000 (12:22 +0900)]
Oops the implementation of SC_set_error_if_not_set() is terribly wrong.

8 years agoMake check of connection lost.
Hiroshi Inoue [Sun, 5 Mar 2017 04:22:50 +0000 (13:22 +0900)]
Make check of connection lost.

8 years agoHandle output parameters properly in build_libpq_bind_params.
Hiroshi Inoue [Sat, 4 Mar 2017 12:33:57 +0000 (21:33 +0900)]
Handle output parameters properly in build_libpq_bind_params.
Also handle return values properly.
Now passes odbc-escapes-test.

8 years agoThe failure of libpq_bind_exec() which returns NULL doesn't mean a FATAL error. Also...
Hiroshi Inoue [Sat, 4 Mar 2017 11:17:09 +0000 (20:17 +0900)]
The failure of libpq_bind_exec() which returns NULL doesn't mean a FATAL error. Also make a check for disconnected connections.

8 years agoModify odbc-escapes-test case. SQLExecDirect cases were added as well as SQLExecute...
Hiroshi Inoue [Wed, 22 Feb 2017 05:13:56 +0000 (14:13 +0900)]
Modify odbc-escapes-test case. SQLExecDirect cases were added as well as SQLExecute after SQLPrepare ones. Currently odbc-escapes-test fails due to the following reason.
1. newly added {call a_b_c_d_e( .. fails in SQLExecDirect test case.
2. { = call concat( .. fails in both test cases.

It would be fixed by the next commit.

8 years agoStart transactons first before calling SQLEndTran().
Hiroshi Inoue [Wed, 8 Feb 2017 08:35:35 +0000 (17:35 +0900)]
Start transactons first before calling SQLEndTran().

8 years agoRun the diff against all expected output files and print the smallest diff.
Hiroshi Inoue [Fri, 3 Feb 2017 02:12:07 +0000 (11:12 +0900)]
Run the diff against all expected output files and print the smallest diff.
Also clean up a couple of comments.

8 years agoOops I should have removed test/expected/deprecated_2.out but removed test/expected...
Hiroshi Inoue [Mon, 6 Feb 2017 13:48:06 +0000 (22:48 +0900)]
Oops I should have removed test/expected/deprecated_2.out but removed test/expected/deprecated_1.out by mistake.

8 years agoSuppress a diff output of deprecated-test.
Hiroshi Inoue [Tue, 24 Jan 2017 12:38:45 +0000 (21:38 +0900)]
Suppress a diff output of deprecated-test.

8 years agoUse the same version number in buildBootstrapper.ps1 as buildInstaller.ps1 uses.
Hiroshi Inoue [Wed, 1 Feb 2017 03:16:46 +0000 (12:16 +0900)]
Use the same version number in buildBootstrapper.ps1 as buildInstaller.ps1 uses.

8 years agomissing include position.. REL-09_06_0100
Hiroshi Saito [Thu, 2 Feb 2017 14:21:29 +0000 (23:21 +0900)]
missing include position..

8 years agoadd def files.
Hiroshi Saito [Thu, 2 Feb 2017 13:50:20 +0000 (22:50 +0900)]
add def files.

8 years agoOoops, lost psqlsetup.c
Hiroshi Saito [Thu, 2 Feb 2017 13:46:55 +0000 (22:46 +0900)]
Ooops, lost psqlsetup.c

8 years agochange winbuild list of EXTRA_DIST.
Hiroshi Saito [Thu, 2 Feb 2017 13:02:38 +0000 (22:02 +0900)]
change winbuild list of EXTRA_DIST.

8 years agoFix the expected output of catalogfunctions test on Windows.
Hiroshi Inoue [Thu, 2 Feb 2017 02:48:59 +0000 (11:48 +0900)]
Fix the expected output of catalogfunctions test on Windows.

8 years agoOops, typo version.
Hiroshi Saito [Wed, 1 Feb 2017 13:43:12 +0000 (22:43 +0900)]
Oops, typo version.

8 years agoRemoved version number from the configuration template xml file.
Hiroshi Inoue [Wed, 1 Feb 2017 07:25:09 +0000 (16:25 +0900)]
Removed version number from the configuration template xml file.

8 years agogetVersion already got $VERSION correctly.
Hiroshi Inoue [Wed, 1 Feb 2017 03:24:56 +0000 (12:24 +0900)]
getVersion already got $VERSION correctly.

8 years agoPrep relese 09.06.0100.
Hiroshi Saito [Tue, 31 Jan 2017 15:33:30 +0000 (00:33 +0900)]
Prep relese 09.06.0100.

8 years agoChange expected result of catalogfunctions-test according to the change of ByteaAsLon...
Hiroshi Inoue [Mon, 30 Jan 2017 05:50:17 +0000 (14:50 +0900)]
Change expected result of catalogfunctions-test according to the change of ByteaAsLongVarBinary's default.
Now bulkoperations-test under Use Declare/Fetch mode is available.

8 years agoJust an improvement for testing.
Hiroshi Inoue [Mon, 30 Jan 2017 03:47:17 +0000 (12:47 +0900)]
Just an improvement for testing.

8 years agoChange the default of ByteaAsLongVarBinary from 0 to 1.
Hiroshi Inoue [Mon, 30 Jan 2017 02:54:58 +0000 (11:54 +0900)]
Change the default of ByteaAsLongVarBinary from 0 to 1.

8 years agoAs tuple_updated item in AddUpdated(), the parameter should be used. Deriving from...
Hiroshi Inoue [Sun, 29 Jan 2017 11:51:32 +0000 (20:51 +0900)]
As tuple_updated item in AddUpdated(), the parameter should be used. Deriving from other items caused bad results.

8 years agoFix a compiltaion error and some warnings.
Hiroshi Inoue [Sun, 29 Jan 2017 05:04:41 +0000 (14:04 +0900)]
Fix a compiltaion error and some warnings.

8 years agoFix a corner case when parsing connection strings enclosed with braces.
Hiroshi Inoue [Sun, 29 Jan 2017 06:37:45 +0000 (15:37 +0900)]
Fix a corner case when parsing connection strings enclosed with braces.

8 years agoParse connection strings enncloed with braces more correctly.
Hiroshi Inoue [Thu, 26 Jan 2017 10:00:14 +0000 (19:00 +0900)]
Parse connection strings enncloed with braces more correctly.

8 years agoAdd a new option 'pqopt' which specifies libpq connection parameters as a conninfo...
Hiroshi Inoue [Sat, 21 Jan 2017 01:34:20 +0000 (10:34 +0900)]
Add a new option 'pqopt' which specifies libpq connection parameters as a conninfo style string. The string must be enclosed with braces {} e.g. pqopt={sslcert=... sslkey=... sslrootcert=...} in the case of connection strings. Though host, port, dbname, user, password, sslmode, keepalives_idle or keepalive_interval parameters can be set using this option, they are ordinarily set by other options. When some settings for those parameters conflict with other ordinary options, connections are rejected.

8 years agoa hack to handle boolean items in VBA with MS Access.
Hiroshi Inoue [Tue, 8 Nov 2016 22:54:56 +0000 (07:54 +0900)]
a hack to handle boolean items in VBA with MS Access.
VBA seems to transform the where condition
a_boolean_item=True
into
("a_boolean_item" = 1)
which causes an ERROR:Operator does not exist boolean = integer .
Here transforms it into
("a_boolean_item"='1')
which seems safe in anyway.

8 years agoEnable SQLBulkOperations in declare/fetch mode using long (>=12bytes) bookmarks.
Hiroshi Inoue [Mon, 23 May 2016 05:52:50 +0000 (14:52 +0900)]
Enable SQLBulkOperations in declare/fetch mode using long (>=12bytes) bookmarks.
Formerly the driver offered very simple bookmark support -- it is just
the current row number. Now the driver offers more verbose bookmarks which
contain KeySet informations (CTID (+ OID)). Though they consume 12bytes
(row number + CTID) or 16bytes (row number + CTID + OID), they are useful
in declare/fetch mode.

8 years agoOops I placed parameters of memset() in the wrong order.
Hiroshi Inoue [Wed, 18 Jan 2017 05:35:10 +0000 (14:35 +0900)]
Oops I placed parameters of memset() in the wrong order.

8 years agoImplement SQL_FECTH_BY_BOOKMARK operation of SQLBulkOperations properly.
Hiroshi Inoue [Sun, 15 Jan 2017 01:14:07 +0000 (10:14 +0900)]
Implement SQL_FECTH_BY_BOOKMARK operation of SQLBulkOperations properly.

8 years agoMake some macros more safe.
Hiroshi Inoue [Sun, 15 Jan 2017 01:50:01 +0000 (10:50 +0900)]
Make some macros more safe.

8 years agoRemoved a duplicate definition.
Hiroshi Inoue [Thu, 12 Jan 2017 10:08:19 +0000 (19:08 +0900)]
Removed a duplicate definition.

8 years agoUse lo_lseek64(lo_tell64) instead of lo_lseek(lo_tell) if the server's version >...
Hiroshi Inoue [Sat, 7 Jan 2017 09:24:57 +0000 (18:24 +0900)]
Use lo_lseek64(lo_tell64) instead of lo_lseek(lo_tell) if the server's version >= 9.3. We are now able to handle > 2GB BLOBs.

8 years agoImprove connection error messages.
Hiroshi Inoue [Wed, 7 Dec 2016 23:17:07 +0000 (08:17 +0900)]
Improve connection error messages.

8 years agoChange the default for ExtraSysTablePrefixes to an empty string.
Heikki Linnakangas [Mon, 5 Dec 2016 13:26:49 +0000 (15:26 +0200)]
Change the default for ExtraSysTablePrefixes to an empty string.

Discussion: https://www.postgresql.org/message-id/CAJLMyc%2BxbLCMUHns5_-_m95q0hHsm-P933BE-BaRP%2B2fSJDP6A@mail.gmail.com

8 years agoUse LF as the line-ending.
Heikki Linnakangas [Mon, 5 Dec 2016 09:54:19 +0000 (11:54 +0200)]
Use LF as the line-ending.

We had accumulated some Windows-style CR+LF line endings in expected output.
Let's be consistent.

8 years agoFix expected output for UseServerSidePrepare=0.
Heikki Linnakangas [Mon, 5 Dec 2016 09:29:37 +0000 (11:29 +0200)]
Fix expected output for UseServerSidePrepare=0.

Commit eb480e19 changed this, but with UseServerSidePrepare=0, the old
expected output was correct. With UseServerSidePrepare=0, the driver sends
the value as a literal, without specifying a type. In that case, the server
deduces the type to be "double", even though the application used SQL_FLOAT
rather than SQL_DOUBLE.

This makes "make installcheck-all" pass on my laptop again.

8 years agoAdd #ifdef for Windows only functions.
Hiroshi Inoue [Mon, 28 Nov 2016 13:39:01 +0000 (22:39 +0900)]
Add #ifdef for Windows only functions.

8 years agoIf the package needs vc14, distribute it with vcruntime140.dll instead of msvcr1x0...
Hiroshi Inoue [Thu, 24 Nov 2016 10:55:35 +0000 (19:55 +0900)]
If the package needs vc14, distribute it with vcruntime140.dll instead of msvcr1x0.dll or with Visual C++ Redistributable 2015.

8 years agoIn psqlsetup, call both FreeLibrary() and __FUnloadDelayLoadedDLL2() for psqlodbc35w...
Hiroshi Inoue [Wed, 23 Nov 2016 22:38:52 +0000 (07:38 +0900)]
In psqlsetup, call both FreeLibrary() and __FUnloadDelayLoadedDLL2() for psqlodbc35w(30a) because psqlodbc35w(30a) is explicitly loaded beforehand and delay loaded also.

8 years agoGive up the use of delayload hook for vc14 or later.
Hiroshi Inoue [Wed, 23 Nov 2016 08:25:49 +0000 (17:25 +0900)]
Give up the use of delayload hook for vc14 or later.

8 years agoUse VCVersion instead of uninitialized variable VisulStudioVersion.
Hiroshi Inoue [Wed, 23 Nov 2016 05:39:16 +0000 (14:39 +0900)]
Use VCVersion instead of uninitialized variable VisulStudioVersion.

8 years agoImprove the way to detect the target PlatformToolset is of vc14 or later.
Hiroshi Inoue [Wed, 23 Nov 2016 05:27:36 +0000 (14:27 +0900)]
Improve the way to detect the target PlatformToolset is of vc14 or later.

8 years agoFix an error in a MSBuild condition in case of Windows SDK 7.1.
Hiroshi Inoue [Tue, 22 Nov 2016 04:38:31 +0000 (13:38 +0900)]
Fix an error in a MSBuild condition in case of Windows SDK 7.1.

8 years agovc14 seems to have troubles with delayload hook. Load psqlodbc35w(30a) in psqlsetup...
Hiroshi Inoue [Fri, 11 Nov 2016 08:37:38 +0000 (17:37 +0900)]
vc14 seems to have troubles with delayload hook. Load psqlodbc35w(30a) in psqlsetup(a) beforehand instead of delayloading.

8 years agoGive up the use of GetVersionEx().
Hiroshi Inoue [Sat, 19 Nov 2016 06:17:51 +0000 (15:17 +0900)]
Give up the use of GetVersionEx().

8 years agoFix compiler warnings.
Hiroshi Inoue [Sat, 19 Nov 2016 01:06:18 +0000 (10:06 +0900)]
Fix compiler warnings.

8 years agoAdd legacy_stdio_definitions.lib to AdditionalDependencies for vc14.
Hiroshi Inoue [Sat, 19 Nov 2016 00:47:25 +0000 (09:47 +0900)]
Add legacy_stdio_definitions.lib to AdditionalDependencies for vc14.

8 years agoStop using invoke-expresion II.
Hiroshi Inoue [Sat, 1 Oct 2016 11:31:35 +0000 (20:31 +0900)]
Stop using invoke-expresion II.

8 years agoTreat SQL_BIT as BOOL.
Hiroshi Inoue [Fri, 11 Nov 2016 11:51:42 +0000 (20:51 +0900)]
Treat SQL_BIT as BOOL.

8 years agoglobals.debug or globals.commlog means whether take mylog or commlog out of
Hiroshi Inoue [Wed, 9 Nov 2016 10:00:32 +0000 (19:00 +0900)]
globals.debug or globals.commlog means whether take mylog or commlog out of
the connection time or not but doesn't mean the default of ci->drivers.debug(commlog).