summaryrefslogtreecommitdiff
path: root/loadlib.h
AgeCommit message (Collapse)Author
2016-11-28Add #ifdef for Windows only functions.Hiroshi Inoue
2016-11-23In psqlsetup, call both FreeLibrary() and __FUnloadDelayLoadedDLL2() for ↵Hiroshi Inoue
psqlodbc35w(30a) because psqlodbc35w(30a) is explicitly loaded beforehand and delay loaded also.
2016-11-23Give up the use of delayload hook for vc14 or later.Hiroshi Inoue
2016-11-21vc14 seems to have troubles with delayload hook. Load psqlodbc35w(30a) in ↵Hiroshi Inoue
psqlsetup(a) beforehand instead of delayloading.
2016-09-22Build the setup program psqlsetup used for the regression dsn.Hiroshi Inoue
psqlsetup also playes a role to relay ODBC API calls to compiled psqlodbc35w(30a).dll.
2014-12-31Use libpq for everything.Heikki Linnakangas
Instead of speaking the frontend/backend protocol directly, use libpq's functions for executing queries. This makes it libpq a hard dependency, but removes direct dependencies to SSL and SSPI, and a lot of related code.
2014-10-08Cleanup the code for *test* button and add the functionality to testHiroshi Inoue
MSDTC support.
2014-03-17Replace NOT_USE_LIBPQ with USE_LIBPQ #define.Heikki Linnakangas
This avoids the cumbersome double-negatives, "#ifndef NOT_USE_LIBPQ", making the code easier to read.
2013-07-10Revise MSDTC support.Hiroshi Inoue
1. Remove pointlessly complicated AsyncThreads stuff. Instead use _beginthread() to clean up threads. 2. Make pgenlist.dll from the structure change of ConnectionClass. The driver dlls exports the functions described in connexp.h which are used by pgenlist.dll. 3. Isolate the current communication path if necessary. While an IAsyncPG object is alive, a ConnectionClass object (hereinafter refered to as conn-obj) is assigned to it. The assignment has to be changed in the following cases. a) SQLDisconnect() is called for the current connection handle which is assigned to an IAsyncPG object. Allocate another conn-obj and move the current communication path (*sock* member of the current conn-obj) to the new conn-obj. The communicaation path is lost from the current conn-obj and the new conn-obj is assigned to the IAsyncPG object. b) Another (global) transaction is about to begin but the current global transaction is not PREPARED yet. Same as case a) but will open a new communication path for the current conn-obj for the subsequent ODBC API calls. c) Another (global) transaction is about to begin and the current global transaction is already PREPARED. Allocate another conn-obj and open a new communication path for the conn-obj. The new conn-obj is assigned to the IAsyncPG object only to issue COMMIT/ROLLBACK PREPARED command. communication pass (*sock* member of the current ConnectionClass object) to the new object and change the state of the current object NOT CONNECTED. The IAsyncPG object uses new object instead of the current object. In case b) the current object will open a new communication path.
2013-04-18Fix references to 'notice.txt'.Heikki Linnakangas
notice.txt doesn't exist anymore, the copyright and license information is in readme.txt now. Update references in comments.
2010-08-211.Introduce pgtype_attr_xxxx functions which take a typmod parameter as well ↵Hiroshi Inoue
as a type oid parameter as an extension of pgtype_xxxx functions so that SQLColumns and SQLDescribeCol(SQLColAttrinute) could use common functions. 2.Call PQconnectdbParams instead of PQconnectdb when it's available. 3.Make cursor open check at transaction end a little more effective. 4.Added code for SQL_INTERVAL support and refcursor support though they are disabled.
2009-11-15 1) Added --with(out)-libpq[=DIR} option to configure.Hiroshi Inoue
2) Revise autoconf/automake so that libpq/ssl header/libs are resolved at configure phase. 3) Use md5.c directly instead of win_md5.c. 4) Suppress some compiler warnings.
2009-04-241. Remove the implicit sslverify option and add 'verify-ca' and 'verify-full'Hiroshi Inoue
to the sslmode option. 2. Take the platforms where char is unsigned into account per report from Alex Goncharov.
2009-03-20The version is now 8.03.0402.Hiroshi Inoue
1. Close (holdable) cursors on commit if possible. 2. Recycle columns cache info if the size becomes pretty large. 3. Add sslverify=none to conninfo in case of SSL connections via libpq of version 8.4. 4. Add a functionality to change the directory for logging. 5. Correct the error code for communication errors.
2007-11-02I may have introduced a bug in the last change which may cause anHiroshi Inoue
infinite loop of trial to use the same (should be lower) version of protocols. Also try to use SSPI service for SSL support when libpq is unavailable.
2007-10-27The version is now 8.2.0501.Hiroshi Inoue
1. Correct the COLUMN_LENGTH return value of SQLColumns() for varchar/bpchar type columns (Unicode driver). 2. Change to not return database name if case of MS Query. 3. The first cut to use Windows SSPI. The trial to use Schannel service for SSL support. 4. Be more careful about <for locking clause> in UseDeclareFetch mode. Add missing? "for read only" clause for read only queries for 8.3 or later servers for safety.
2007-04-03The version is now 8.2.0205.Hiroshi Inoue
. Append DETAIL messages to GetDiag...() messages. . Use SQL_SUCCEEDED macros so as to simplify the code. . Use lastval() function to replace IDENTITY on 8.1 or later servers. . Remove WSAStartup() and WSACleanup() from DllMain. . Load libpq from the driver's folder. . Use QR_get_value_backend_int/_text() funcs instead of QR_get_value_backend_row(). . Improve the implemetation of SQLSetPos(.., SQL_ADD/SQL_UPDATE) using the 8.2 new feature INSERT/UPDATE .. returning . . Seaparate DTC code as a Delayload DLL.
2006-10-13The version is now 8.2.0103.Hiroshi Inoue
1.Improve the handling of connection error messages. 2.Add an option to convert empty strings to NULL. 3.Handle domain type as the basetype. 4.Fake MSS in case of not only SQLExecute but also SQLParamData. 5.Prevent SQLColumns from displaying system columns. 6.Unload delayLoaded libraries on dll detach (not on disconnect time). 7.Fix a SQLGetDiagField crash bug. 8.Fix a insertion count bug. 9.Take win98 cases into account a little.
2006-04-08Commit the changed files from the enhanced branchDave Page