head	1.2;
access;
symbols
	pkgsrc-2017Q4:1.1.0.68
	pkgsrc-2017Q4-base:1.1
	pkgsrc-2017Q3:1.1.0.66
	pkgsrc-2017Q3-base:1.1
	pkgsrc-2017Q2:1.1.0.62
	pkgsrc-2017Q2-base:1.1
	pkgsrc-2017Q1:1.1.0.60
	pkgsrc-2017Q1-base:1.1
	pkgsrc-2016Q4:1.1.0.58
	pkgsrc-2016Q4-base:1.1
	pkgsrc-2016Q3:1.1.0.56
	pkgsrc-2016Q3-base:1.1
	pkgsrc-2016Q2:1.1.0.54
	pkgsrc-2016Q2-base:1.1
	pkgsrc-2016Q1:1.1.0.52
	pkgsrc-2016Q1-base:1.1
	pkgsrc-2015Q4:1.1.0.50
	pkgsrc-2015Q4-base:1.1
	pkgsrc-2015Q3:1.1.0.48
	pkgsrc-2015Q3-base:1.1
	pkgsrc-2015Q2:1.1.0.46
	pkgsrc-2015Q2-base:1.1
	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	2018.01.10.23.07.01;	author wiz;	state dead;
branches;
next	1.1;
commitid	b02gvby2KhOhQnmA;

1.1
date	2009.10.21.04.21.27;	author taca;	state Exp;
branches
	1.1.68.1;
next	;

1.1.68.1
date	2018.03.02.20.41.04;	author spz;	state dead;
branches;
next	;
commitid	2lYsK1OCaM1FoVsA;


desc
@@


1.2
log
@unixodbc: update to 2.3.5.

2-Jan-2018
2.3.5

    * Add configure option --enable-setlibversion set mark the libs with VERS_3.52
      Linux only, so any driver built with the libs will work with closed source
      DM's
    * Add persistent storage of isql command line history if readline() is used (thanks Axel)
    * Rename some local mutex functions to avoid name clashes
    * Assorted fixes (Thanks Markus * 2)
    * Fix regression in ini caching
    * Make SQLDrivers look in user as well as system odbcinst.ini for driver attributes
    * If in use, clear the ini cache when a write is done via SQLWritePrivateProfileString() so
      the new value is read
    * Fix problem with pooling if the environment was released by the application
    * Add check for SQL_COLUMN_COUNT in SQLColAttribute
    * isql would not display long error messages. Fixed now.
    * Fix problem calling the driver to report errors if the error is from the DM and the driver
      has not been called
    * SQLSetConnectAttrW crashes when attempting to set SQL_ATTR_LOGIN_TIMEOUT
    * Buffer overflow in unicode_to_ansi_copy()
    * SQLDriverConnect with not-found FILEDSN causes crash
    * SQLGetDescRec with null name pointer causes crash
    * Connection string escaping does not work
    * SQLDriverConnect/W with very long driver name causes crash
    * Connection string with trailing empty value causes crash
    * Freeing explicitly allocated descriptor results in writing to freed memory
    * Buffer overflows and missing null checks in SQLConfigDataSource, SQLInstallDriverEx, and SQLWriteFileDSN
    * Statement enters incorrect state upon SQLExecDirectW returning SQL_NO_DATA
    * SQLBulkOperations fails to exit async state after success
    * SQLFreeStmt causes prepared statements in S1 or S2 to erroneously transition to S3
    * Buffer length fixes for SQLGetDiagField
    * SQLSetConnectAttrW and Unicode string pre-connect attributes do not work
    * SQLGetData and SQLSetPos async states are incorrect
    * Various string conversion and length issues in SQLColAttribute(s)
    * Missing buffer length check in SQLColAttribute(s)W
    * SQLGetStmtAttr state handling incorrect in S5, S6, and S7 (via SQLExtendedFetch)
    * SQLSetPos and SQLExtendedFetch state management fixes
    * SQLExecDirect/W erroneous transition to S1 upon error in S5
    * Async SQLGetData and SQLExecDirect/W fails to restore state upon cancellation
    * SQLFetchScroll cannot move cursor back into the rowset
    * SQLSetDescField doesn't adjust the length of the buffer when converting to unicode
    * SQLGetDescField/W and SQLSetDescField/W do not check for negative buffer lengths
    * SQLSetStmtAttrW SQL_ATTR_APP_PARAM_DESC and SQL_ATTR_APP_ROW_DESC does not accept null
    * SQLGetData async state reentrancy issues
    * SQLDriversW off-by-one in enumerating driver list
    * SQLPrimaryKeys does not pass length in characters to driver
    * SQLGetConnectAttr with string attributes truncates to half buffer length
    * SQLTransact with autocommit enabled erroneously changes statement state
    * SQLDataSources/W fails to reset list position upon end
    * SQLGetEnvAttr successfully returns unset SQL_ATTR_ODBC_VERSION
    * Lack of SQL_HANDLE_SENV support
    * SQLAllocEnv fails to set environment version correctly
    * SQLMoreResults with streamed output parameters returns unexpected HY010
    * Custom pre-connect pointer attributes are truncated to 32 bits
    * 08003 message should be "Connection not open"
    * SQL_ATTR_ACCESS_MODE set using SQLSetConnectOption/W before connecting does not persist after disconnecting
    * SQL_ATTR_AUTOCOMMIT incorrect default value before connecting
    * SQL_AUTOCOMMIT set using SQLSetConnectOption/W before connecting does not persist after disconnecting
    * SQLAllocHandle/SQLFreeHandle with invalid handle type should return SQL_INVALID_HANDLE
    * SQLAllocHandleStd not setting ODBC version correctly
    * SQLBindParameter does not ignore BufferLength for DAE parameters
    * SQLBindParameter does not ignore BufferLength for fixed-length parameters
    * SQLBindParameter returns "Invalid application buffer type" instead of " Program type out of range"
    * SQLCancel with 01S05 returned from driver should result in SQL_SUCCESS, not SQL_SUCCESS_WITH_INFO
      (see https://msdn.microsoft.com/en-us/library/aa392708(v=vs.85).aspx )
    * SQLColAttribute/SQLColAttributes should return number of bytes needed for Unicode string when truncating
    * SQLColumnPrivileges/W differing error message precedence from Windows DM and order in ODBC spec
    * SQLColumns/W extraneous checks on null string's length
    * SQLCopyDesc does not copy descriptors across connections correctly
    * SQLDescribeParam extraneous checks for state
    * SQLDriverConnect/W adds extraneous DM prefix to diagnostic messages
    * SQLDriversW before ODBC version set returns incorrect SQLSTATE
    * SQLFetch in state S7 does not return error from DM
    * SQLFetchScroll missing check for SQL_FETCH_BOOKMARK
    * SQLForeignKeys/W missing check for null table names
    * SQLGetConnectAttr/W erroneously retrieves attributes with no default (SQL_ATTR_PACKET_SIZE, SQL_ATTR_QUIET_MODE)
    * SQLGetConnectAttr/W fails to get some set attributes before connecting
    * SQLGetConnectAttr/W fails to retrieve set attributes with no connection
    * SQLGetConnectAttrW returns incorrect value for SQL_ATTR_TRACE
    * SQLGetConnectOption/W cannot retrieve SQL_ODBC_CURSORS before connection
    * SQLGetConnectOption/W fails to retrieve SQL_LOGIN_TIMEOUT before connecting
    * SQLGetConnectOption/W fails to retrieve SQL_ATTR_ACCESS_MODE set with SQLSetConnectOption/W
    * SQLGetData and SQLSetPos async states are incorrect
    * SQLGetData missing check for cursor end indication; SQLSetCursorName/W fails to clear previous diagnostic records
    * SQLGetDiagField/W does not check record number for SQL_DIAG_ROW_COUNT and SQL_DIAG_DYNAMIC_FUNCTION_CODE
    * SQLGetDiagField/W missing check for negative buffer length for string fields
    * SQLGetDiagField/W inconsistent handling of statement-only diagnostic fields
    * SQLGetInstalledDrivers off-by-one length
    * SQLGetStmtOption various state handling issues
    * SQLSetConnectAttr/W SQL_ATTR_CURRENT_CATALOG extraneous check with error 24000
    * SQLSetConnectAttr/W does not prevent attempts to set ODBC 3.x statement attributes
    * SQLSetConnectAttr/W with null string attributes causes crash
    * SQLSetConnectOption passes SQL_ATTR_TRACEFILE to the driver
    * SQLSetConnectOption/W or SQLSetConnectAttr/W missing validity checks for SQL_ATTR_TXN_ISOLATION
    * SQLSetConnectOption/W setting SQL_ATTR_TRACEFILE to null results in different error
    * SQLSetCursorName/W missing checks for negative name length
    * SQLSetDescField/W missing check for negative SQL_DESC_COUNT
    * SQLSetParam missing various error checks for invalid data types and buffer
    * SQLSetPos does not check for state S5
    * SQLSetPos missing checks in state S7
    * SQLSetScrollOptions various state handling issues
    * SQLSetStmtOption/W missing check for positive rowset sizes
    * SQLSpecialColumns/W error precedence differs from Windows DM
    * SQLSpecialColumns/W incorrect check for SQL_NTS string lengths
    * SQLStatisticsW uniqueness parameter missing validation
    * SQLTablePrivileges/W extraneous checks on null string's length
    * Various issues with SQLGetFunctions
    * Various string conversion and length issues in SQLColAttribute; missing buffer length check in SQLColAttributeW
    * As above, but for SQLColAttributes and SQLColAttributesW; incorrect check for SQL_COLUMN_COUNT
    * Setting SQL_ATTR_TRACEFILE to null value results in different error
    * check_target_type allows driver-specific C data types for ODBC < 3.8
    * fix empty SQL_DIAG_SERVER_NAME field in DM-supplied diag recs
    * fix differing behaviour for an empty string DSN in SQLConnect/W
    * Alter isql to return errors from SQLMoreResults
    * Handle case of building on mingw-w64
@
text
@$NetBSD: patch-ag,v 1.1 2009/10/21 04:21:27 taca Exp $

* Call function_return() with IGNORE_THREAD since __SQLGetInfo() is already
  called and __SQLGetInfo() calls function_return().

--- DriverManager/SQLGetInfo.c.orig	2008-09-29 23:02:45.000000000 +0900
+++ DriverManager/SQLGetInfo.c
@@@@ -611,5 +611,5 @@@@ SQLRETURN SQLGetInfo( SQLHDBC connection
                 connection -> msg );
     }
 
-    return function_return( SQL_HANDLE_DBC, connection, ret );
+    return function_return( IGNORE_THREAD, connection, ret );
 }
@


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$
@


1.1.68.1
log
@Pullup ticket #5709 - requested by taca
databases/unixodbc: security update

Revisions pulled up:
- databases/unixodbc/Makefile                                   1.38
- databases/unixodbc/distinfo                                   1.16
- databases/unixodbc/patches/patch-aa                           deleted
- databases/unixodbc/patches/patch-ac                           deleted
- databases/unixodbc/patches/patch-ad                           deleted
- databases/unixodbc/patches/patch-ag                           deleted
- databases/unixodbc/patches/patch-ah                           deleted
- databases/unixodbc/patches/patch-ai                           deleted
- databases/unixodbc/patches/patch-aj                           deleted
- databases/unixodbc/patches/patch-ak                           deleted
- databases/unixodbc/patches/patch-al                           deleted
- databases/unixodbc/patches/patch-am                           deleted
- databases/unixodbc/patches/patch-an                           deleted
- databases/unixodbc/patches/patch-ao                           deleted

-------------------------------------------------------------------
   Module Name:	pkgsrc
   Committed By:	wiz
   Date:		Wed Jan 10 23:07:01 UTC 2018

   Modified Files:
   	pkgsrc/databases/unixodbc: Makefile distinfo
   Removed Files:
   	pkgsrc/databases/unixodbc/patches: patch-aa patch-ac patch-ad patch-ag
   	    patch-ah patch-ai patch-aj patch-ak patch-al patch-am patch-an
   	    patch-ao

   Log Message:
   unixodbc: update to 2.3.5.

   2-Jan-2018
   2.3.5

       * Add configure option --enable-setlibversion set mark the libs with VERS_3.52
         Linux only, so any driver built with the libs will work with closed source
         DM's
       * Add persistent storage of isql command line history if readline() is used (thanks Axel)
       * Rename some local mutex functions to avoid name clashes
       * Assorted fixes (Thanks Markus * 2)
       * Fix regression in ini caching
       * Make SQLDrivers look in user as well as system odbcinst.ini for driver attributes
       * If in use, clear the ini cache when a write is done via SQLWritePrivateProfileString() so
         the new value is read
       * Fix problem with pooling if the environment was released by the application
       * Add check for SQL_COLUMN_COUNT in SQLColAttribute
       * isql would not display long error messages. Fixed now.
       * Fix problem calling the driver to report errors if the error is from the DM and the driver
         has not been called
       * SQLSetConnectAttrW crashes when attempting to set SQL_ATTR_LOGIN_TIMEOUT
       * Buffer overflow in unicode_to_ansi_copy()
       * SQLDriverConnect with not-found FILEDSN causes crash
       * SQLGetDescRec with null name pointer causes crash
       * Connection string escaping does not work
       * SQLDriverConnect/W with very long driver name causes crash
       * Connection string with trailing empty value causes crash
       * Freeing explicitly allocated descriptor results in writing to freed memory
       * Buffer overflows and missing null checks in SQLConfigDataSource, SQLInstallDriverEx, and SQLWriteFileDSN
       * Statement enters incorrect state upon SQLExecDirectW returning SQL_NO_DATA
       * SQLBulkOperations fails to exit async state after success
       * SQLFreeStmt causes prepared statements in S1 or S2 to erroneously transition to S3
       * Buffer length fixes for SQLGetDiagField
       * SQLSetConnectAttrW and Unicode string pre-connect attributes do not work
       * SQLGetData and SQLSetPos async states are incorrect
       * Various string conversion and length issues in SQLColAttribute(s)
       * Missing buffer length check in SQLColAttribute(s)W
       * SQLGetStmtAttr state handling incorrect in S5, S6, and S7 (via SQLExtendedFetch)
       * SQLSetPos and SQLExtendedFetch state management fixes
       * SQLExecDirect/W erroneous transition to S1 upon error in S5
       * Async SQLGetData and SQLExecDirect/W fails to restore state upon cancellation
       * SQLFetchScroll cannot move cursor back into the rowset
       * SQLSetDescField doesn't adjust the length of the buffer when converting to unicode
       * SQLGetDescField/W and SQLSetDescField/W do not check for negative buffer lengths
       * SQLSetStmtAttrW SQL_ATTR_APP_PARAM_DESC and SQL_ATTR_APP_ROW_DESC does not accept null
       * SQLGetData async state reentrancy issues
       * SQLDriversW off-by-one in enumerating driver list
       * SQLPrimaryKeys does not pass length in characters to driver
       * SQLGetConnectAttr with string attributes truncates to half buffer length
       * SQLTransact with autocommit enabled erroneously changes statement state
       * SQLDataSources/W fails to reset list position upon end
       * SQLGetEnvAttr successfully returns unset SQL_ATTR_ODBC_VERSION
       * Lack of SQL_HANDLE_SENV support
       * SQLAllocEnv fails to set environment version correctly
       * SQLMoreResults with streamed output parameters returns unexpected HY010
       * Custom pre-connect pointer attributes are truncated to 32 bits
       * 08003 message should be "Connection not open"
       * SQL_ATTR_ACCESS_MODE set using SQLSetConnectOption/W before connecting does not persist after disconnecting
       * SQL_ATTR_AUTOCOMMIT incorrect default value before connecting
       * SQL_AUTOCOMMIT set using SQLSetConnectOption/W before connecting does not persist after disconnecting
       * SQLAllocHandle/SQLFreeHandle with invalid handle type should return SQL_INVALID_HANDLE
       * SQLAllocHandleStd not setting ODBC version correctly
       * SQLBindParameter does not ignore BufferLength for DAE parameters
       * SQLBindParameter does not ignore BufferLength for fixed-length parameters
       * SQLBindParameter returns "Invalid application buffer type" instead of " Program type out of range"
       * SQLCancel with 01S05 returned from driver should result in SQL_SUCCESS, not SQL_SUCCESS_WITH_INFO
         (see https://msdn.microsoft.com/en-us/library/aa392708(v=vs.85).aspx )
       * SQLColAttribute/SQLColAttributes should return number of bytes needed for Unicode string when truncating
       * SQLColumnPrivileges/W differing error message precedence from Windows DM and order in ODBC spec
       * SQLColumns/W extraneous checks on null string's length
       * SQLCopyDesc does not copy descriptors across connections correctly
       * SQLDescribeParam extraneous checks for state
       * SQLDriverConnect/W adds extraneous DM prefix to diagnostic messages
       * SQLDriversW before ODBC version set returns incorrect SQLSTATE
       * SQLFetch in state S7 does not return error from DM
       * SQLFetchScroll missing check for SQL_FETCH_BOOKMARK
       * SQLForeignKeys/W missing check for null table names
       * SQLGetConnectAttr/W erroneously retrieves attributes with no default (SQL_ATTR_PACKET_SIZE, SQL_ATTR_QUIET_MODE)
       * SQLGetConnectAttr/W fails to get some set attributes before connecting
       * SQLGetConnectAttr/W fails to retrieve set attributes with no connection
       * SQLGetConnectAttrW returns incorrect value for SQL_ATTR_TRACE
       * SQLGetConnectOption/W cannot retrieve SQL_ODBC_CURSORS before connection
       * SQLGetConnectOption/W fails to retrieve SQL_LOGIN_TIMEOUT before connecting
       * SQLGetConnectOption/W fails to retrieve SQL_ATTR_ACCESS_MODE set with SQLSetConnectOption/W
       * SQLGetData and SQLSetPos async states are incorrect
       * SQLGetData missing check for cursor end indication; SQLSetCursorName/W fails to clear previous diagnostic records
       * SQLGetDiagField/W does not check record number for SQL_DIAG_ROW_COUNT and SQL_DIAG_DYNAMIC_FUNCTION_CODE
       * SQLGetDiagField/W missing check for negative buffer length for string fields
       * SQLGetDiagField/W inconsistent handling of statement-only diagnostic fields
       * SQLGetInstalledDrivers off-by-one length
       * SQLGetStmtOption various state handling issues
       * SQLSetConnectAttr/W SQL_ATTR_CURRENT_CATALOG extraneous check with error 24000
       * SQLSetConnectAttr/W does not prevent attempts to set ODBC 3.x statement attributes
       * SQLSetConnectAttr/W with null string attributes causes crash
       * SQLSetConnectOption passes SQL_ATTR_TRACEFILE to the driver
       * SQLSetConnectOption/W or SQLSetConnectAttr/W missing validity checks for SQL_ATTR_TXN_ISOLATION
       * SQLSetConnectOption/W setting SQL_ATTR_TRACEFILE to null results in different error
       * SQLSetCursorName/W missing checks for negative name length
       * SQLSetDescField/W missing check for negative SQL_DESC_COUNT
       * SQLSetParam missing various error checks for invalid data types and buffer
       * SQLSetPos does not check for state S5
       * SQLSetPos missing checks in state S7
       * SQLSetScrollOptions various state handling issues
       * SQLSetStmtOption/W missing check for positive rowset sizes
       * SQLSpecialColumns/W error precedence differs from Windows DM
       * SQLSpecialColumns/W incorrect check for SQL_NTS string lengths
       * SQLStatisticsW uniqueness parameter missing validation
       * SQLTablePrivileges/W extraneous checks on null string's length
       * Various issues with SQLGetFunctions
       * Various string conversion and length issues in SQLColAttribute; missing buffer length check in SQLColAttributeW
       * As above, but for SQLColAttributes and SQLColAttributesW; incorrect check for SQL_COLUMN_COUNT
       * Setting SQL_ATTR_TRACEFILE to null value results in different error
       * check_target_type allows driver-specific C data types for ODBC < 3.8
       * fix empty SQL_DIAG_SERVER_NAME field in DM-supplied diag recs
       * fix differing behaviour for an empty string DSN in SQLConnect/W
       * Alter isql to return errors from SQLMoreResults
       * Handle case of building on mingw-w64


   To generate a diff of this commit:
   cvs rdiff -u -r1.37 -r1.38 pkgsrc/databases/unixodbc/Makefile
   cvs rdiff -u -r1.15 -r1.16 pkgsrc/databases/unixodbc/distinfo
   cvs rdiff -u -r1.7 -r0 pkgsrc/databases/unixodbc/patches/patch-aa
   cvs rdiff -u -r1.2 -r0 pkgsrc/databases/unixodbc/patches/patch-ac \
       pkgsrc/databases/unixodbc/patches/patch-ai \
       pkgsrc/databases/unixodbc/patches/patch-aj
   cvs rdiff -u -r1.1 -r0 pkgsrc/databases/unixodbc/patches/patch-ad \
       pkgsrc/databases/unixodbc/patches/patch-ag \
       pkgsrc/databases/unixodbc/patches/patch-ak \
       pkgsrc/databases/unixodbc/patches/patch-al \
       pkgsrc/databases/unixodbc/patches/patch-am \
       pkgsrc/databases/unixodbc/patches/patch-an \
       pkgsrc/databases/unixodbc/patches/patch-ao
   cvs rdiff -u -r1.3 -r0 pkgsrc/databases/unixodbc/patches/patch-ah
@
text
@d1 1
a1 1
$NetBSD: patch-ag,v 1.1 2009/10/21 04:21:27 taca Exp $
@


