blob: 9d9ee89b6ab270842c341c9fe9228fb04437720c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
$NetBSD: patch-ae,v 1.1 2009/10/21 04:21:27 taca Exp $
* Avoid to call call __SQLGetInfo() twice since __SQLGetInfo() calls
thread_release() internally and it cause unlocking unlocked mutex.
--- DriverManager/SQLConnect.c.orig 2008-09-29 23:02:43.000000000 +0900
+++ DriverManager/SQLConnect.c
@@ -2086,11 +2086,13 @@ int __connect_part_two( DMHDBC connectio
char txt[ 20 ];
SQLRETURN ret;
+#if 0
ret = __SQLGetInfo( connection,
SQL_DRIVER_ODBC_VER,
txt,
sizeof( txt ),
NULL );
+#endif
if ( SQL_SUCCEEDED( ret ))
{
|