1 /**********************************************************************
2  * SQLGetConnectAttr
3  *
4  **********************************************************************
5  *
6  * This code was created by Peter Harvey (mostly during Christmas 98/99).
7  * This code is LGPL. Please ensure that this message remains in future
8  * distributions and uses of this code (thats about all I get out of it).
9  * - Peter Harvey pharvey@codebydesign.com
10  *
11  **********************************************************************/
12 
13 #include <config.h>
14 #include "driver.h"
15 
SQLGetConnectAttr(SQLHDBC hDrvDbc,SQLINTEGER Attribute,SQLPOINTER Value,SQLINTEGER BufferLength,SQLINTEGER * StringLength)16 SQLRETURN  SQLGetConnectAttr(
17                              SQLHDBC             hDrvDbc,
18                              SQLINTEGER          Attribute,
19                              SQLPOINTER          Value,
20                              SQLINTEGER          BufferLength,
21                              SQLINTEGER         *StringLength
22                             )
23 {
24 	HDRVDBC	hDbc	= (HDRVDBC)hDrvDbc;
25 
26 	/* SANITY CHECKS */
27     if( NULL == hDbc )
28         return SQL_INVALID_HANDLE;
29 
30 	sprintf((char*) hDbc->szSqlMsg, "hDbc = $%08lX", (long)hDbc );
31     logPushMsg( hDbc->hLog, __FILE__, __FILE__, __LINE__, LOG_WARNING, LOG_WARNING,(char*) hDbc->szSqlMsg );
32 
33     /************************
34      * REPLACE THIS COMMENT WITH SOMETHING USEFULL
35      ************************/
36     logPushMsg( hDbc->hLog, __FILE__, __FILE__, __LINE__, LOG_WARNING, LOG_WARNING, "SQL_ERROR This function not supported" );
37 
38 
39     return SQL_ERROR;
40 }
41 
42 
43