head 1.2; access; symbols pkgsrc-2015Q1:1.1.0.44 pkgsrc-2015Q1-base:1.1 pkgsrc-2014Q4:1.1.0.42 pkgsrc-2014Q4-base:1.1 pkgsrc-2014Q3:1.1.0.40 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.38 pkgsrc-2014Q2-base:1.1 pkgsrc-2014Q1:1.1.0.36 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.34 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.32 pkgsrc-2013Q3-base:1.1 pkgsrc-2013Q2:1.1.0.30 pkgsrc-2013Q2-base:1.1 pkgsrc-2013Q1:1.1.0.28 pkgsrc-2013Q1-base:1.1 pkgsrc-2012Q4:1.1.0.26 pkgsrc-2012Q4-base:1.1 pkgsrc-2012Q3:1.1.0.24 pkgsrc-2012Q3-base:1.1 pkgsrc-2012Q2:1.1.0.22 pkgsrc-2012Q2-base:1.1 pkgsrc-2012Q1:1.1.0.20 pkgsrc-2012Q1-base:1.1 pkgsrc-2011Q4:1.1.0.18 pkgsrc-2011Q4-base:1.1 pkgsrc-2011Q3:1.1.0.16 pkgsrc-2011Q3-base:1.1 pkgsrc-2011Q2:1.1.0.14 pkgsrc-2011Q2-base:1.1 pkgsrc-2011Q1:1.1.0.12 pkgsrc-2011Q1-base:1.1 pkgsrc-2010Q4:1.1.0.10 pkgsrc-2010Q4-base:1.1 pkgsrc-2010Q3:1.1.0.8 pkgsrc-2010Q3-base:1.1 pkgsrc-2010Q2:1.1.0.6 pkgsrc-2010Q2-base:1.1 pkgsrc-2010Q1:1.1.0.4 pkgsrc-2010Q1-base:1.1 pkgsrc-2009Q4:1.1.0.2 pkgsrc-2009Q4-base:1.1; locks; strict; comment @# @; 1.2 date 2015.04.26.11.37.08; author ryoon; state dead; branches; next 1.1; commitid TntzA3IdhuRDQ5jy; 1.1 date 2009.10.21.04.21.27; author taca; state Exp; branches; next ; desc @@ 1.2 log @Update to 2.3.2 * Bump BUILDLINK_API_DEPENDS. Changelog: 8th-October-2013 2.3.2 * The logging of WStrings was using the incorrect length in some cases * Pass SQLDescribeCol call to driver when in state 2 (not a cursor spec). * Pass SQLMoreResults call to driver when in state 2 (not a cursor spec). Both the last two changes are not as per the original book state table but allign with the current MS driver manager * The -e option to isql got lost somewhere. Back in now * Update install-sh * SQLCancel assumed that the DM was being built with thread support * Try and speed up SQLTransact and SQLEndTran operation * Add missing \ in Postgres7.1 Makefile * Correct some potential buffer overflows * Handle SQL_NEED_DATA from a SQLMoreResults * Get the local charset via nl_langinfo(CODESET) when asking the DM to do ASCII-UNICODE conversions * Handle (and remove) leading spaces from ini entries * Fixed unicode conversion problems in SQLGetDiagField(W) * missing terminating null in iusql * add to the list of errno states that does not cause a create of the ini file * SQLSetConnactAttr() -> SQLSetConnectAttrW() was passing incorrect string length * Fix double free in SQLGetDiagFieldW * Fix Unicode/Ansi conversion problem in SQLGetDiagFieldW.c * Add support for Driver64 in SQLDriverConnectW * Add missing unicode setting when returning a connection to the pool * Tidy up leaking iconv handles if connect_part_one fails * Fix (and avoid) some out of memory problems * Wrap lt_dlinit and dlerror in the lib mutex * Add slencheck executable to try and find the sizeof(SQLLEN) from a installed driver * SQL_NO_DATA after SQL_STILL_EXECUTING in SQLExtendedFetch was not setting the state correctly * A little more 3.80 stuff being added * Added fixes found by coverity * Added man pages * Patches to update VMS build * Change mutex protection around release_env * Altered strlen to be count of bytes in SQLGetDiagFieldW * Add check for W function support in do_attr * Allow SQLDrivers to return attribute length with no supplied buffer 26th-November-2011 2.3.1 * Change type definition of a integer in SQLConnect.c, just to avoid confusion * Allow setting the DM overrive values in the connection string to SQLDriverConnect for example "DRIVER={Easysoft ODBC-SQL Server};Server=myserver;UID=user;PWD=pass;DMStmtAttr=SQL_QUERY_TIMEOUT=10;" * Error and info message order was being inverted by the driver manager * Fix memory leak in SQLDriverConnect.c (Thanks JM) * The keyword matching for DRIVER=, DSN= etc was case sensitive. Make it insensitive now * Avoid sprintf NULL pointer problem in SQLGetDiagRec * Fix typo affecting the pooling of connections, (thanks Chris) * Fix SunCC _mcount problem * Attempt to stamp version info on the libs generated. There are aps in use linked against other driver managers that expect VERS_3.52 * Fix potential buffer overrun when using SAFEFILE * Fix mutex problem in the exit from __SQLGetInfo (thanks Richard) * Allow getting SQL_DM_VER via SQLGetInfo before connecting to a driver * Generate unixodbc_conf.h using macros to allow cross compiling * Fix some libltdl problems * Fix some naming problems with the cursor lib * Fix odbcinst problems on systems without pwd.h * Change lib version to 2 to reflect SQLLEN changes in v2.3 * Fix threading problem (thanks Petr Vandrovec) * Allow use of lib name in a DRIVER= connection string * Change default threading protection to 0, most drivers should be thread safe by now. If the driver is at all thread safe, allow SQLCancel to bipass the interlock. * Performance change to handle large numbers of connection and statement handles better. Thanks for the change from the folks at Acision. * Add -k option to isql to treat the DSN as a connection string and use SQLDriverConnect isql -k "DSN=server;UID=test;PWD=test" * Couple of the SQLSetConnactAttr values are now SQLULEN instead of SQLUINTEGER * SQLSetConnectAttr was passing a char length instead of a byte length into the Driver SQLSetConnectAttr when converting from Ansi->Unicode * Driver version was not being held when a second connection was made to the driver @ text @$NetBSD: patch-af,v 1.1 2009/10/21 04:21:27 taca Exp $ * Call function_return() with IGNORE_THREAD after calling thread_release(). --- DriverManager/SQLFreeHandle.c.orig 2007-12-17 22:13:03.000000000 +0900 +++ DriverManager/SQLFreeHandle.c @@@@ -234,7 +234,7 @@@@ SQLRETURN __SQLFreeHandle( SQLSMALLINT h thread_release( SQL_HANDLE_ENV, environment ); - return function_return( SQL_HANDLE_ENV, environment, SQL_ERROR ); + return function_return( IGNORE_THREAD, environment, SQL_ERROR ); } thread_release( SQL_HANDLE_ENV, environment ); @@@@ -301,7 +301,7 @@@@ SQLRETURN __SQLFreeHandle( SQLSMALLINT h thread_release( SQL_HANDLE_ENV, environment ); - return function_return( SQL_HANDLE_ENV, environment, SQL_ERROR ); + return function_return( IGNORE_THREAD, environment, SQL_ERROR ); } environment -> connection_count --; @@@@ -404,7 +404,7 @@@@ SQLRETURN __SQLFreeHandle( SQLSMALLINT h thread_release( SQL_HANDLE_STMT, statement ); - return function_return( SQL_HANDLE_STMT, statement, SQL_ERROR ); + return function_return( IGNORE_THREAD, statement, SQL_ERROR ); } if ( !CHECK_SQLFREEHANDLE( statement -> connection )) @@@@ -551,7 +551,7 @@@@ SQLRETURN __SQLFreeHandle( SQLSMALLINT h thread_release( SQL_HANDLE_DESC, descriptor ); - return function_return( SQL_HANDLE_DESC, descriptor, SQL_ERROR ); + return function_return( IGNORE_THREAD, descriptor, SQL_ERROR ); } else { @ 1.1 log @Try to fix some pthread problems detected on NetBSD 4.0_STABLE (and may be later). * When connecting a SQL server, isql crashed. isql: Error detected by libpthread: Unlocking unlocked mutex. * Setting "Threding = 0" in odbcinst.ini, isql crashed when closing connection to a SQL server. isql: Error detected by libpthread: Destroying locked mutex. I've checked mutex handling and created patches. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ @