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.
Hiroshi Inoue [Mon, 28 Nov 2016 13:39:01 +0000 (22:39 +0900)]
Add #ifdef for Windows only functions.
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.
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.
Hiroshi Inoue [Wed, 23 Nov 2016 08:25:49 +0000 (17:25 +0900)]
Give up the use of delayload hook for vc14 or later.
Hiroshi Inoue [Wed, 23 Nov 2016 05:39:16 +0000 (14:39 +0900)]
Use VCVersion instead of uninitialized variable VisulStudioVersion.
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.
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.
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.
Hiroshi Inoue [Sat, 19 Nov 2016 06:17:51 +0000 (15:17 +0900)]
Give up the use of GetVersionEx().
Hiroshi Inoue [Sat, 19 Nov 2016 01:06:18 +0000 (10:06 +0900)]
Fix compiler warnings.
Hiroshi Inoue [Sat, 19 Nov 2016 00:47:25 +0000 (09:47 +0900)]
Add legacy_stdio_definitions.lib to AdditionalDependencies for vc14.
Hiroshi Inoue [Sat, 1 Oct 2016 11:31:35 +0000 (20:31 +0900)]
Stop using invoke-expresion II.
Hiroshi Inoue [Fri, 11 Nov 2016 11:51:42 +0000 (20:51 +0900)]
Treat SQL_BIT as BOOL.
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).
Hiroshi Inoue [Wed, 9 Nov 2016 06:43:42 +0000 (15:43 +0900)]
Add docs/editConfiguration.jpg to the distribution.
Hiroshi Inoue [Mon, 7 Nov 2016 05:49:47 +0000 (14:49 +0900)]
If psqlsetup(a) failed to load libpq, it tries to load libpq in the currently installed directory. If neither is successful, display a Message Box to show the failure.
Hiroshi Inoue [Sun, 6 Nov 2016 10:41:27 +0000 (19:41 +0900)]
It turns out that cmdlets Get-OdbcDsn and Get-OdbcDriver are unavailable in old machines. Add more functionalities to RegisterRegDsn.exe.
Hiroshi Inoue [Sat, 5 Nov 2016 12:45:09 +0000 (21:45 +0900)]
Suppress a compilation error in Windows SDK 7.1.
Hiroshi Inoue [Sat, 5 Nov 2016 11:35:21 +0000 (20:35 +0900)]
Don't forget to import pguser.Cpp.props because Windows SDK 7.1 could be chosen.
Hiroshi Inoue [Fri, 4 Nov 2016 04:04:20 +0000 (13:04 +0900)]
Ensure that psqlodbc35w(30a) and psqlsetup(a) share the same driver info.
Hiroshi Inoue [Mon, 11 Apr 2016 05:42:41 +0000 (14:42 +0900)]
Modify the result of regression test dignostic-test according to the change of commit 0f70eb.
Hiroshi Inoue [Fri, 4 Nov 2016 05:26:29 +0000 (14:26 +0900)]
Make sure the isolation level is SQLUINTEGER and add the declaration of CC_get_isolation().
Hiroshi Inoue [Thu, 3 Nov 2016 10:03:25 +0000 (19:03 +0900)]
Share common driver info(mylog, qlog) even when the driver name is different.
Hiroshi Inoue [Wed, 2 Nov 2016 12:33:13 +0000 (21:33 +0900)]
Improve error messages.
Hiroshi Inoue [Tue, 25 Oct 2016 09:58:12 +0000 (18:58 +0900)]
Added to commit 7849ba( was a patch by Tsunakawa,Takayuki).
Now default isolation level is server's default instead of fixed SQL_TXN_READ_COMMITTED.
Also reduced the number of round trips using multiple commands.
Hiroshi Inoue [Tue, 1 Nov 2016 12:38:55 +0000 (21:38 +0900)]
Add an image of editConfiguration.
Fixed typos.
Hiroshi Saito [Mon, 31 Oct 2016 14:15:14 +0000 (23:15 +0900)]
import winbuild document.
It was necessary in web site.
Hiroshi Inoue [Wed, 26 Oct 2016 22:58:09 +0000 (07:58 +0900)]
Handle PG_DIAG_SEVERITY_NONLOCALIZED for servers whose version >= 9.6 so as to detect FATAL message properly.
Hiroshi Inoue [Thu, 27 Oct 2016 03:44:41 +0000 (12:44 +0900)]
Commit 3b6f3d changed the results of regression tests. Put back to set error messages only when error messages are not set.
Hiroshi Inoue [Sat, 29 Oct 2016 05:38:11 +0000 (14:38 +0900)]
Check the existence of directory for logging.
Hiroshi Inoue [Tue, 25 Oct 2016 09:58:12 +0000 (18:58 +0900)]
Return proper sqlstate error 08S01 in case of communication link failures. Patch by Tsunakawa,Takayuki.
Hiroshi Inoue [Tue, 18 Oct 2016 12:04:38 +0000 (21:04 +0900)]
Allow setting isolation level before the establishment of connection.
Hiroshi Inoue [Fri, 14 Oct 2016 12:15:34 +0000 (21:15 +0900)]
Fix the bug reported by Shinji Mecha.
In commit
e85fbb24249ae81975b1b2e46da32479de0b58d6, handle_error_message() and handle_notice_message() were unified into handle_pgres_error() in the wrong way. Unfortunately handle_error_message() never handled notice messages and set positive errornumbers which mean error_not_a_notice in psqlodbc. I renamed the constant CONNECTION_SERVER_REPORTED_ERROR to CONNECTION_SERVER_REPORTED_SEVERITY_FATAL and the constant CONNECTION_SERVER_REPORTED_WARNING to CONNECTION_SERVER_REPORTED_SEVERITY_ERROR so as to avoid confusion.
Hiroshi Inoue [Sat, 15 Oct 2016 03:11:59 +0000 (12:11 +0900)]
Oops, I forgot to update installer/buildInstallers.ps1 in commit
c0a3b083ab5394c50cf0e71986769f265de297fe.
Heikki Linnakangas [Wed, 12 Oct 2016 07:26:33 +0000 (10:26 +0300)]
Remove unused #defines.
Heikki Linnakangas [Wed, 12 Oct 2016 07:24:12 +0000 (10:24 +0300)]
Silence compiler warning about missing argument datatype.
Heikki Linnakangas [Wed, 12 Oct 2016 07:21:31 +0000 (10:21 +0300)]
Use SIZEOF_LONG_INT to check whether SQLROWSETSIZE exists.
I changed this originally to use SIZEOF_LONG_INT, in commit
661b9bf8. That
commit also changed an unrelated check in psqlodbc.h, but that was wrong.
Hiroshi fixed that in commit
19b3dee3, by changing them to use SIZEOF_LONG
instead. That was correct for psqlodbc.h, but was in turn wrong for
odbcapi.c.
SIZEOF_LONG_INT is defined in UnixODBC headers, while SIZEOF_LONG is defined
by psqlodbc's ./configure. In odbcapi.c, we use it to determine what format
modifier, %ld or %lld, to use for pointers. (Why don't we use %p?). We should
rely on our autoconf check for that. In odbcapi.c, however, the check should
match that in the ODBC headers, to determine whether SQLROWSIZE exists, so
we should use SIZEOF_LONG_INT.
Heikki Linnakangas [Wed, 12 Oct 2016 07:21:11 +0000 (10:21 +0300)]
Mark ParseWithLibpq as static.
For sake of tidiness.
Hiroshi Inoue [Tue, 11 Oct 2016 04:06:31 +0000 (13:06 +0900)]
Rename long name of properties, WarningLevel -> WarnLvl, DisableSpecificWarnings -> DSpcWarn.
Hiroshi Inoue [Mon, 10 Oct 2016 11:29:46 +0000 (20:29 +0900)]
Handle *default* PG directories.
Hiroshi Inoue [Mon, 10 Oct 2016 03:00:48 +0000 (12:00 +0900)]
Before invoking MSBuild, test the existence of include, lib or bin directory.
Hiroshi Inoue [Sun, 9 Oct 2016 10:39:48 +0000 (19:39 +0900)]
Use powershell script module Psqlodbc-config.psm1 instead of configuration.ps1.
Hiroshi Inoue [Sun, 9 Oct 2016 12:11:28 +0000 (21:11 +0900)]
build_macros rather than setvcvars about which there's no code.
Hiroshi Inoue [Sun, 9 Oct 2016 10:52:11 +0000 (19:52 +0900)]
Documentation update.
Hiroshi Inoue [Sun, 9 Oct 2016 04:36:17 +0000 (13:36 +0900)]
Documentation update.
Hiroshi Inoue [Sat, 8 Oct 2016 13:03:59 +0000 (22:03 +0900)]
set lc_messages='C' so that error messages are ASCII ones.
Hiroshi Inoue [Sat, 8 Oct 2016 12:39:42 +0000 (21:39 +0900)]
Fix compiler warnings.
Hiroshi Inoue [Tue, 4 Oct 2016 04:20:27 +0000 (13:20 +0900)]
Using Powershell and MSBuild is the recommended way.
Hiroshi Inoue [Mon, 3 Oct 2016 05:39:45 +0000 (14:39 +0900)]
Documentation update for MSBuild.
Hiroshi Inoue [Tue, 4 Oct 2016 11:06:14 +0000 (20:06 +0900)]
Remove Imported-Modules.
Don't forget to initialize $msbuildexE
Hiroshi Inoue [Sat, 1 Oct 2016 11:53:45 +0000 (20:53 +0900)]
Documentation update.
Hiroshi Inoue [Sat, 1 Oct 2016 11:43:23 +0000 (20:43 +0900)]
Documentation update.
Hiroshi Inoue [Wed, 28 Sep 2016 12:47:23 +0000 (21:47 +0900)]
Add some error check to RegisterRegdsn.
Hiroshi Inoue [Sun, 25 Sep 2016 04:05:13 +0000 (13:05 +0900)]
Stop using invoke-expression.
Hiroshi Inoue [Fri, 23 Sep 2016 02:57:40 +0000 (11:57 +0900)]
Don't forget to replace globals when the driver name is diffrent from that of default.
Hiroshi Inoue [Fri, 23 Sep 2016 21:09:44 +0000 (06:09 +0900)]
Add TestList parameter which specifies a list of test cases.
Hiroshi Inoue [Fri, 23 Sep 2016 21:19:20 +0000 (06:19 +0900)]
Treat a parameter properly.
Hiroshi Inoue [Sat, 17 Sep 2016 05:33:07 +0000 (14:33 +0900)]
Add a special DSN for regression test.
Hiroshi Inoue [Wed, 31 Aug 2016 07:27:48 +0000 (16:27 +0900)]
Build the setup program psqlsetup used for the regression dsn.
psqlsetup also playes a role to relay ODBC API calls to compiled psqlodbc35w(30a).dll.
Hiroshi Inoue [Tue, 30 Aug 2016 04:04:55 +0000 (13:04 +0900)]
Separate the functionality of setup program.
Setup consists of setup.c, dlg_wingui.c, dlg_specific.c, mylog.c, xalibname.c, misc.c, loadlib.c and win_unicode.c.
Hiroshi Inoue [Tue, 20 Sep 2016 03:37:37 +0000 (12:37 +0900)]
Move a property group about version number from psqlodbc.vcxproj to psqlodbc.Cpp.props so that different dlls share the same version number.
Hiroshi Inoue [Mon, 19 Sep 2016 10:00:01 +0000 (19:00 +0900)]
Remove byte order mark from .vcxproj files.
Hiroshi Inoue [Mon, 19 Sep 2016 07:38:41 +0000 (16:38 +0900)]
Get the version from version.h when the number is not specified in the config file.
Hiroshi Inoue [Sat, 10 Sep 2016 11:59:16 +0000 (20:59 +0900)]
Add PG_BIN to the parameters of platformbuild.vcxproj.
Hiroshi Inoue [Sat, 10 Sep 2016 06:07:59 +0000 (15:07 +0900)]
Modify helper batch commands so that they can handle path names which contain spaces.
Hiroshi Inoue [Tue, 6 Sep 2016 11:56:30 +0000 (20:56 +0900)]
Add a helper batch command for regression test.
Hiroshi Inoue [Tue, 6 Sep 2016 11:08:40 +0000 (20:08 +0900)]
Rename a Powershell Module MSBuild-Get to MSProgram-Get.
Rename a function Get-MSBuild to Find-MSBuild so as to avoid the risk that msbuild is misunderstood Get-MSBuild.
Hiroshi Inoue [Thu, 28 Jul 2016 02:02:37 +0000 (11:02 +0900)]
Find dumpbin for the people like me who don't load C++ environment.
1. Make a function which find a dumpbin with additional PATH if necessary.
2. Make a function which get a list of dlls a dll directly or indirectly links.
Hiroshi Inoue [Sun, 4 Sep 2016 02:12:13 +0000 (11:12 +0900)]
Rewrite BuildAll.ps1 using Get-MSBuild function common to regress.ps1.
Hiroshi Inoue [Thu, 1 Sep 2016 03:26:18 +0000 (12:26 +0900)]
Use a common function getPGDir between winbuild/BuildAll.ps1 and installer/buildInstallers.ps1 so as to get PG related include, lib or bin directory.
Hiroshi Inoue [Tue, 2 Aug 2016 10:30:24 +0000 (19:30 +0900)]
Regression test using MSBuild.
Hiroshi Inoue [Fri, 5 Aug 2016 09:36:37 +0000 (18:36 +0900)]
Fix compiler warnings.
Hiroshi Inoue [Sat, 30 Jul 2016 22:50:27 +0000 (07:50 +0900)]
Cleanup win.mak a little for regression test on Windows.
Hiroshi Saito [Sat, 30 Jul 2016 13:27:37 +0000 (22:27 +0900)]
Prep release 09.05.0400.
Hiroshi Inoue [Fri, 29 Jul 2016 07:35:59 +0000 (16:35 +0900)]
Add 6 expected output so as to fix regression test failures on Windows.
Hiroshi Inoue [Fri, 29 Jul 2016 07:05:20 +0000 (16:05 +0900)]
Fix a regression test failure in catalogfunctions-test. SQLTablePrivileges test case produces 5 * (1 + count of super users other than current user) lines. Limiting the output to the first 5 lines fixes the result anyway.
Hiroshi Inoue [Thu, 28 Jul 2016 10:20:06 +0000 (19:20 +0900)]
Improve the handling of common.obj in regression test on Windows.
Now we can notice if common.c changes. Also, we don't build common.c separately
for each test, instead we build common.obj once and just link it to each test.
Hiroshi Inoue [Fri, 29 Jul 2016 02:34:57 +0000 (11:34 +0900)]
Fix some compilation warnings.
Hiroshi Inoue [Tue, 26 Jul 2016 23:23:34 +0000 (08:23 +0900)]
Fix regression test failures in param-convesrions-test. Though error messages of 2 test cases about SQL_FLOAT are not so appropriate, they are not wrong.
Hiroshi Inoue [Sun, 24 Jul 2016 22:13:19 +0000 (07:13 +0900)]
Fix regression test failures in result-conversions-test on big-endian platforms. expected/result-conversions_1.out lacks 3 lines.
Hiroshi Inoue [Sun, 24 Jul 2016 09:58:42 +0000 (18:58 +0900)]
Fix regression test failures on armv7hl. 'char' type seems to mean unsigned char on the platform. Though move_direction member of QResultClass takes negative values, QR_is_moving_backward() never returns TRUE. So ensure that move_direction is signed char on any platform.
Hiroshi Inoue [Wed, 20 Jul 2016 10:40:42 +0000 (19:40 +0900)]
The following infomation is from Dave Cramer(davecramer@gmail.com).
Prior to Visual Studio 2015 Update 3, the hook functions of type PfnDliHook __pfnDliNotifyHook2 and __pfnDliFailureHook2 were non-const. They were made const to improve security (global, writable function pointers are bad). If for backwards compatibility you require the hooks to be writable, define the macro DELAYIMP_INSECURE_WRITABLE_HOOKS prior to including this header and provide your own non-const definition of the hooks.
Hiroshi Inoue [Sun, 17 Jul 2016 02:45:23 +0000 (11:45 +0900)]
Fix a warning on non-windows platform.
Hiroshi Inoue [Wed, 13 Jul 2016 13:35:32 +0000 (22:35 +0900)]
Ignore the difference between CR LF, LF and CR line break when comparing expected and result output.
Hiroshi Inoue [Tue, 5 Jul 2016 23:35:42 +0000 (08:35 +0900)]
Move src/*.exe to exe/*.exe on Windows.
Also use fc command instead of diff command on Windows.
Fix a compilation error in large-object-data-at-exec-test.c regarding a type declaration in the middle of a code block (Patch by Michael Paquier).
Hiroshi Inoue [Thu, 7 Jul 2016 03:42:39 +0000 (12:42 +0900)]
Fix the bug introduced by the commit
4d44165af04d40e8aad405a9fbe31d7304c654c8 that SQLGetDiagFieldW, SQLGetDescFieldW or SQLColAttributeW mistakenly returns SQL_ERROR.
Hiroshi Inoue [Wed, 6 Jul 2016 10:17:12 +0000 (19:17 +0900)]
Default of *level of rollback on errors* is default(statement) not transaction.
Hiroshi Inoue [Wed, 6 Jul 2016 00:03:37 +0000 (09:03 +0900)]
Enable COMMLOG and MYLOG button.
Hiroshi Saito [Fri, 17 Jun 2016 14:03:43 +0000 (23:03 +0900)]
Prep release 09.05.0300.
Hiroshi Saito [Fri, 17 Jun 2016 13:57:06 +0000 (22:57 +0900)]
Prep release 09.05.0300.
Hiroshi Inoue [Thu, 5 May 2016 00:05:54 +0000 (09:05 +0900)]
Move test/src/*.exe to test/exe/*.exe so that directory name test/src can be specified for EXTRA_DIST.
Hiroshi Inoue [Fri, 17 Jun 2016 10:34:07 +0000 (19:34 +0900)]
Another one where 'for' loop initial declarations are only allowed in C99 mode.
Hiroshi Inoue [Fri, 17 Jun 2016 10:27:02 +0000 (19:27 +0900)]
'for' loop initial declarations are only allowed in C99 mode.
Hiroshi Inoue [Fri, 17 Jun 2016 02:53:44 +0000 (11:53 +0900)]
Implement SQL_QUERY_TIMEOUT. Patch by Tsunakawa, Takayuki.
Hiroshi Inoue [Fri, 17 Jun 2016 02:43:58 +0000 (11:43 +0900)]
fix buffer overrun in logging, and code cleanup. Patch by Tsunakawa, Takayuki.
Hiroshi Inoue [Sun, 15 May 2016 05:12:37 +0000 (14:12 +0900)]
Convert tableoid to relation name in case of inheritance.
Hiroshi Inoue [Sat, 21 May 2016 06:07:43 +0000 (15:07 +0900)]
Add one more delete-loop to cursor-block-delete-test after rolling back to another savepoint.
Hiroshi Inoue [Sat, 23 Apr 2016 04:43:54 +0000 (13:43 +0900)]
Preparation for handling inheritance.
Hiroshi Inoue [Mon, 25 Apr 2016 03:50:41 +0000 (12:50 +0900)]
Refine cursors with KEYSET using oid or oid alternative as far as possible.