1*caf5cd79SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*caf5cd79SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*caf5cd79SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*caf5cd79SAndrew Rist  * distributed with this work for additional information
6*caf5cd79SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*caf5cd79SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*caf5cd79SAndrew Rist  * "License"); you may not use this file except in compliance
9*caf5cd79SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*caf5cd79SAndrew Rist  *
11*caf5cd79SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*caf5cd79SAndrew Rist  *
13*caf5cd79SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*caf5cd79SAndrew Rist  * software distributed under the License is distributed on an
15*caf5cd79SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*caf5cd79SAndrew Rist  * KIND, either express or implied.  See the License for the
17*caf5cd79SAndrew Rist  * specific language governing permissions and limitations
18*caf5cd79SAndrew Rist  * under the License.
19*caf5cd79SAndrew Rist  *
20*caf5cd79SAndrew Rist  *************************************************************/
21*caf5cd79SAndrew Rist 
22*caf5cd79SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _CONNECTIVITY_ODBC_OFUNCTIONS_HXX_
25cdf0e10cSrcweir #define _CONNECTIVITY_ODBC_OFUNCTIONS_HXX_
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include "odbc/OFunctiondefs.hxx"
28cdf0e10cSrcweir #include <rtl/ustring.hxx>
29cdf0e10cSrcweir #include <osl/module.h>
30cdf0e10cSrcweir 
31cdf0e10cSrcweir namespace connectivity
32cdf0e10cSrcweir {
33cdf0e10cSrcweir 
34cdf0e10cSrcweir //	sal_Bool LoadFunctions(oslModule pODBCso, sal_Bool _bDS=sal_True);
35cdf0e10cSrcweir //	sal_Bool LoadLibrary_ODBC3(::rtl::OUString &_rPath);
36cdf0e10cSrcweir //	sal_Bool LoadLibrary_ADABAS(::rtl::OUString &_rPath);
37cdf0e10cSrcweir 
38cdf0e10cSrcweir 	// Connecting to a data source
39cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLAllocHandle) (SQLSMALLINT HandleType,SQLHANDLE InputHandle,SQLHANDLE *	OutputHandlePtr);
40cdf0e10cSrcweir 
41cdf0e10cSrcweir 	#define N3SQLAllocHandle(a,b,c) (*(T3SQLAllocHandle)getOdbcFunction(ODBC3SQLAllocHandle))(a,b,c)
42cdf0e10cSrcweir 
43cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLConnect) (SQLHDBC ConnectionHandle,SQLCHAR *ServerName,SQLSMALLINT	NameLength1,SQLCHAR *UserName,SQLSMALLINT NameLength2,SQLCHAR *Authentication,SQLSMALLINT NameLength3);
44cdf0e10cSrcweir 
45cdf0e10cSrcweir 	#define N3SQLConnect(a,b,c,d,e,f,g) (*(T3SQLConnect)getOdbcFunction(ODBC3SQLConnect))(a,b,c,d,e,f,g)
46cdf0e10cSrcweir 
47cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLDriverConnect) (	SQLHDBC			ConnectionHandle,
48cdf0e10cSrcweir 														HWND			WindowHandle,
49cdf0e10cSrcweir 														SQLCHAR *		InConnectionString,
50cdf0e10cSrcweir 														SQLSMALLINT		StringLength1,
51cdf0e10cSrcweir 														SQLCHAR *		OutConnectionString,
52cdf0e10cSrcweir 														SQLSMALLINT		BufferLength,
53cdf0e10cSrcweir 														SQLSMALLINT *	StringLength2Ptr,
54cdf0e10cSrcweir 														SQLUSMALLINT	DriverCompletion);
55cdf0e10cSrcweir 
56cdf0e10cSrcweir 	#define N3SQLDriverConnect(a,b,c,d,e,f,g,h) (*(T3SQLDriverConnect)getOdbcFunction(ODBC3SQLDriverConnect))(a,b,c,d,e,f,g,h)
57cdf0e10cSrcweir 
58cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLBrowseConnect) (	SQLHDBC			ConnectionHandle,
59cdf0e10cSrcweir 														SQLCHAR *		InConnectionString,
60cdf0e10cSrcweir 														SQLSMALLINT		StringLength1,
61cdf0e10cSrcweir 														SQLCHAR *		OutConnectionString,
62cdf0e10cSrcweir 														SQLSMALLINT		BufferLength,
63cdf0e10cSrcweir 														SQLSMALLINT *	StringLength2Ptr);
64cdf0e10cSrcweir 
65cdf0e10cSrcweir 	#define N3SQLBrowseConnect(a,b,c,d,e,f) (*(T3SQLBrowseConnect)getOdbcFunction(ODBC3SQLBrowseConnect))(a,b,c,d,e,f)
66cdf0e10cSrcweir 
67cdf0e10cSrcweir 	// Obtaining information about a driver and data source
68cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLDataSources) (	SQLHENV			EnvironmentHandle,
69cdf0e10cSrcweir 														SQLUSMALLINT	Direction,
70cdf0e10cSrcweir 														SQLCHAR *		ServerName,
71cdf0e10cSrcweir 														SQLSMALLINT		BufferLength1,
72cdf0e10cSrcweir 														SQLSMALLINT *	NameLength1Ptr,
73cdf0e10cSrcweir 														SQLCHAR *		Description,
74cdf0e10cSrcweir 														SQLSMALLINT		BufferLength2,
75cdf0e10cSrcweir 														SQLSMALLINT *	NameLength2Ptr);
76cdf0e10cSrcweir 
77cdf0e10cSrcweir 	#define N3SQLDataSources(a,b,c,d,e,f,g,h) (*(T3SQLDataSources)getOdbcFunction(ODBC3SQLDataSources))(a,b,c,d,e,f,g,h)
78cdf0e10cSrcweir 
79cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLDrivers) (	SQLHENV			EnvironmentHandle,
80cdf0e10cSrcweir 													SQLUSMALLINT	Direction,
81cdf0e10cSrcweir 													SQLCHAR *		DriverDescription,
82cdf0e10cSrcweir 													SQLSMALLINT		BufferLength1,
83cdf0e10cSrcweir 													SQLSMALLINT *	DescriptionLengthPtr,
84cdf0e10cSrcweir 													SQLCHAR *		DriverAttributes,
85cdf0e10cSrcweir 													SQLSMALLINT		BufferLength2,
86cdf0e10cSrcweir 													SQLSMALLINT *	AttributesLengthPtr);
87cdf0e10cSrcweir 
88cdf0e10cSrcweir 	#define N3SQLDrivers(a,b,c,d,e,f,g,h) (*(T3SQLDrivers)getOdbcFunction(ODBC3SQLDrivers))(a,b,c,d,e,f,g,h)
89cdf0e10cSrcweir 
90cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLGetInfo) (	SQLHDBC			ConnectionHandle,
91cdf0e10cSrcweir 													SQLUSMALLINT	InfoType,
92cdf0e10cSrcweir 													SQLPOINTER		InfoValuePtr,
93cdf0e10cSrcweir 													SQLSMALLINT		BufferLength,
94cdf0e10cSrcweir 													SQLSMALLINT *	StringLengthPtr);
95cdf0e10cSrcweir 
96cdf0e10cSrcweir 	#define N3SQLGetInfo(a,b,c,d,e) (*(T3SQLGetInfo)getOdbcFunction(ODBC3SQLGetInfo))(a,b,c,d,e)
97cdf0e10cSrcweir 
98cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLGetFunctions) (SQLHDBC			ConnectionHandle,
99cdf0e10cSrcweir 													SQLUSMALLINT	FunctionId,
100cdf0e10cSrcweir 													SQLUSMALLINT *	SupportedPtr);
101cdf0e10cSrcweir 
102cdf0e10cSrcweir 	#define N3SQLGetFunctions(a,b,c) (*(T3SQLGetFunctions)getOdbcFunction(ODBC3SQLGetFunctions))(a,b,c)
103cdf0e10cSrcweir 
104cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLGetTypeInfo) (	SQLHSTMT	StatementHandle,
105cdf0e10cSrcweir 													SQLSMALLINT		DataType);
106cdf0e10cSrcweir 
107cdf0e10cSrcweir 	#define N3SQLGetTypeInfo(a,b) (*(T3SQLGetTypeInfo)getOdbcFunction(ODBC3SQLGetTypeInfo))(a,b)
108cdf0e10cSrcweir 
109cdf0e10cSrcweir 	// Setting and retrieving driver attributes
110cdf0e10cSrcweir 	typedef SQLRETURN (SQL_API *T3SQLSetConnectAttr)(SQLHDBC		ConnectionHandle,
111cdf0e10cSrcweir 													SQLINTEGER		Attribute,
112cdf0e10cSrcweir 													SQLPOINTER		ValuePtr,
113cdf0e10cSrcweir 													SQLINTEGER		StringLength);
114cdf0e10cSrcweir 
115cdf0e10cSrcweir 	#define N3SQLSetConnectAttr(a,b,c,d) (*(T3SQLSetConnectAttr)getOdbcFunction(ODBC3SQLSetConnectAttr))(a,b,c,d)
116cdf0e10cSrcweir 
117cdf0e10cSrcweir 	typedef SQLRETURN (SQL_API *T3SQLGetConnectAttr) (SQLHDBC		ConnectionHandle,
118cdf0e10cSrcweir 													SQLINTEGER		Attribute,
119cdf0e10cSrcweir 													SQLPOINTER		ValuePtr,
120cdf0e10cSrcweir 													SQLINTEGER		BufferLength,
121cdf0e10cSrcweir 													SQLINTEGER*		StringLength);
122cdf0e10cSrcweir 
123cdf0e10cSrcweir 	#define N3SQLGetConnectAttr(a,b,c,d,e) (*(T3SQLGetConnectAttr)getOdbcFunction(ODBC3SQLGetConnectAttr))(a,b,c,d,e)
124cdf0e10cSrcweir 
125cdf0e10cSrcweir 
126cdf0e10cSrcweir 	typedef SQLRETURN (SQL_API *T3SQLSetEnvAttr) (	SQLHENV			EnvironmentHandle,
127cdf0e10cSrcweir 													SQLINTEGER		Attribute,
128cdf0e10cSrcweir 													SQLPOINTER		ValuePtr,
129cdf0e10cSrcweir 													SQLINTEGER		StringLength);
130cdf0e10cSrcweir 
131cdf0e10cSrcweir 	#define N3SQLSetEnvAttr(a,b,c,d) (*(T3SQLSetEnvAttr)getOdbcFunction(ODBC3SQLSetEnvAttr))(a,b,c,d)
132cdf0e10cSrcweir 
133cdf0e10cSrcweir 	typedef SQLRETURN (SQL_API *T3SQLGetEnvAttr) (	SQLHENV			EnvironmentHandle,
134cdf0e10cSrcweir 													SQLINTEGER		Attribute,
135cdf0e10cSrcweir 													SQLPOINTER		ValuePtr,
136cdf0e10cSrcweir 													SQLINTEGER		BufferLength,
137cdf0e10cSrcweir 													SQLINTEGER*		StringLength);
138cdf0e10cSrcweir 
139cdf0e10cSrcweir 	#define N3SQLGetEnvAttr(a,b,c,d,e) (*(T3SQLGetEnvAttr)getOdbcFunction(ODBC3SQLGetEnvAttr))(a,b,c,d,e)
140cdf0e10cSrcweir 
141cdf0e10cSrcweir 
142cdf0e10cSrcweir 	typedef SQLRETURN (SQL_API *T3SQLSetStmtAttr) (	SQLHSTMT		StatementHandle,
143cdf0e10cSrcweir 													SQLINTEGER		Attribute,
144cdf0e10cSrcweir 													SQLPOINTER		ValuePtr,
145cdf0e10cSrcweir 													SQLINTEGER		StringLength);
146cdf0e10cSrcweir 
147cdf0e10cSrcweir 	#define N3SQLSetStmtAttr(a,b,c,d) (*(T3SQLSetStmtAttr)getOdbcFunction(ODBC3SQLSetStmtAttr))(a,b,c,d)
148cdf0e10cSrcweir 
149cdf0e10cSrcweir 	typedef SQLRETURN (SQL_API *T3SQLGetStmtAttr) (	SQLHSTMT		StatementHandle,
150cdf0e10cSrcweir 													SQLINTEGER		Attribute,
151cdf0e10cSrcweir 													SQLPOINTER		ValuePtr,
152cdf0e10cSrcweir 													SQLINTEGER		BufferLength,
153cdf0e10cSrcweir 													SQLINTEGER*		StringLength);
154cdf0e10cSrcweir 
155cdf0e10cSrcweir 	#define N3SQLGetStmtAttr(a,b,c,d,e) (*(T3SQLGetStmtAttr)getOdbcFunction(ODBC3SQLGetStmtAttr))(a,b,c,d,e)
156cdf0e10cSrcweir 
157cdf0e10cSrcweir 	// Setting and retrieving descriptor fields
158cdf0e10cSrcweir 	/*typedef SQLRETURN (SQL_API *T3SQLSetDescField) (SQLHDESC		DescriptorHandle,
159cdf0e10cSrcweir 													SQLSMALLINT		RecNumber,
160cdf0e10cSrcweir 													SQLSMALLINT		FieldIdentifier,
161cdf0e10cSrcweir 													SQLPOINTER		ValuePtr,
162cdf0e10cSrcweir 													SQLINTEGER		BufferLength);
163cdf0e10cSrcweir 
164cdf0e10cSrcweir 	#define N3SQLSetDescField(a,b,c,d,e) (*(T3SQLSetDescField)getOdbcFunction(ODBC3SQLSetDescField))(a,b,c,d,e)
165cdf0e10cSrcweir 
166cdf0e10cSrcweir 	typedef SQLRETURN (SQL_API *T3SQLGetDescField) (	SQLHDESC		DescriptorHandle,
167cdf0e10cSrcweir 													SQLSMALLINT		RecNumber,
168cdf0e10cSrcweir 													SQLSMALLINT		FieldIdentifier,
169cdf0e10cSrcweir 													SQLPOINTER		ValuePtr,
170cdf0e10cSrcweir 													SQLINTEGER		BufferLength,
171cdf0e10cSrcweir 													SQLINTEGER *	StringLengthPtr);
172cdf0e10cSrcweir 
173cdf0e10cSrcweir 	#define N3SQLGetDescField(a,b,c,d,e,f) (*(T3SQLGetDescField)getOdbcFunction(ODBC3SQLGetDescField))(a,b,c,d,e,f)
174cdf0e10cSrcweir 
175cdf0e10cSrcweir 
176cdf0e10cSrcweir 	typedef SQLRETURN (SQL_API *T3SQLGetDescRec) (	SQLHDESC			DescriptorHandle,
177cdf0e10cSrcweir 													SQLSMALLINT			RecNumber,
178cdf0e10cSrcweir 													SQLCHAR *			Name,
179cdf0e10cSrcweir 													SQLSMALLINT			BufferLength,
180cdf0e10cSrcweir 													SQLSMALLINT *		StringLengthPtr,
181cdf0e10cSrcweir 													SQLSMALLINT *		TypePtr,
182cdf0e10cSrcweir 													SQLSMALLINT *		SubTypePtr,
183cdf0e10cSrcweir 													SQLLEN *			LengthPtr,
184cdf0e10cSrcweir 													SQLSMALLINT *		PrecisionPtr,
185cdf0e10cSrcweir 													SQLSMALLINT *		ScalePtr,
186cdf0e10cSrcweir 													SQLSMALLINT *		NullablePtr);
187cdf0e10cSrcweir 
188cdf0e10cSrcweir 	#define N3SQLGetDescRec(a,b,c,d,e,f,g,h,i,j,k) (*(T3SQLGetDescRec)getOdbcFunction(ODBC3SQLGetDescRec))(a,b,c,d,e,f,g,h,i,j,k)
189cdf0e10cSrcweir 
190cdf0e10cSrcweir 
191cdf0e10cSrcweir 	typedef SQLRETURN (SQL_API *T3SQLSetDescRec) (	SQLHDESC			DescriptorHandle,
192cdf0e10cSrcweir 													SQLSMALLINT			RecNumber,
193cdf0e10cSrcweir 													SQLSMALLINT			Type,
194cdf0e10cSrcweir 													SQLSMALLINT			SubType,
195cdf0e10cSrcweir 													SQLINTEGER			Length,
196cdf0e10cSrcweir 													SQLSMALLINT			Precision,
197cdf0e10cSrcweir 													SQLSMALLINT			Scale,
198cdf0e10cSrcweir 													SQLPOINTER			DataPtr,
199cdf0e10cSrcweir 													SQLLEN *			StringLengthPtr,
200cdf0e10cSrcweir 													SQLLEN *			IndicatorPtr);
201cdf0e10cSrcweir 
202cdf0e10cSrcweir 	#define N3SQLSetDescRec(a,b,c,d,e,f,g,h,i,j) (*(T3SQLSetDescRec)getOdbcFunction(ODBC3SQLSetDescRec))(a,b,c,d,e,f,g,h,i,j)
203cdf0e10cSrcweir 	*/
204cdf0e10cSrcweir 
205cdf0e10cSrcweir 	// Preparing SQL requests
206cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLPrepare) (		SQLHSTMT			StatementHandle,
207cdf0e10cSrcweir 													SQLCHAR *			StatementText,
208cdf0e10cSrcweir 													SQLINTEGER			TextLength);
209cdf0e10cSrcweir 
210cdf0e10cSrcweir 	#define N3SQLPrepare(a,b,c) (*(T3SQLPrepare)getOdbcFunction(ODBC3SQLPrepare))(a,b,c)
211cdf0e10cSrcweir 
212cdf0e10cSrcweir 	typedef SQLRETURN (SQL_API  *T3SQLBindParameter) (SQLHSTMT			StatementHandle,
213cdf0e10cSrcweir 													SQLUSMALLINT		ParameterNumber,
214cdf0e10cSrcweir 													SQLSMALLINT			InputOutputType,
215cdf0e10cSrcweir 													SQLSMALLINT			ValueType,
216cdf0e10cSrcweir 													SQLSMALLINT			ParameterType,
217cdf0e10cSrcweir 													SQLULEN				ColumnSize,
218cdf0e10cSrcweir 													SQLSMALLINT			DecimalDigits,
219cdf0e10cSrcweir 													SQLPOINTER			ParameterValuePtr,
220cdf0e10cSrcweir 													SQLLEN				BufferLength,
221cdf0e10cSrcweir 													SQLLEN *			StrLen_or_IndPtr);
222cdf0e10cSrcweir 
223cdf0e10cSrcweir 	#define N3SQLBindParameter(a,b,c,d,e,f,g,h,i,j) (*(T3SQLBindParameter)getOdbcFunction(ODBC3SQLBindParameter))(a,b,c,d,e,f,g,h,i,j)
224cdf0e10cSrcweir 
225cdf0e10cSrcweir 	/*typedef SQLRETURN (SQL_API  *T3SQLGetCursorName) (SQLHSTMT			StatementHandle,
226cdf0e10cSrcweir 													SQLCHAR *			CursorName,
227cdf0e10cSrcweir 													SQLSMALLINT			BufferLength,
228cdf0e10cSrcweir 													SQLSMALLINT *		NameLengthPtr);
229cdf0e10cSrcweir 
230cdf0e10cSrcweir 	#define N3SQLGetCursorName(a,b,c,d) (*(T3SQLGetCursorName)getOdbcFunction(ODBC3SQLGetCursorName))(a,b,c,d)
231cdf0e10cSrcweir 	*/
232cdf0e10cSrcweir 
233cdf0e10cSrcweir 	typedef SQLRETURN (SQL_API  *T3SQLSetCursorName) (SQLHSTMT			StatementHandle,
234cdf0e10cSrcweir 													SQLCHAR *			CursorName,
235cdf0e10cSrcweir 													SQLSMALLINT			NameLength);
236cdf0e10cSrcweir 
237cdf0e10cSrcweir 	#define N3SQLSetCursorName(a,b,c) (*(T3SQLSetCursorName)getOdbcFunction(ODBC3SQLSetCursorName))(a,b,c)
238cdf0e10cSrcweir 
239cdf0e10cSrcweir 	// Submitting requests
240cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLExecute) (		SQLHSTMT			StatementHandle);
241cdf0e10cSrcweir 
242cdf0e10cSrcweir 	#define N3SQLExecute(a) (*(T3SQLExecute)getOdbcFunction(ODBC3SQLExecute))(a)
243cdf0e10cSrcweir 
244cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLExecDirect) (	SQLHSTMT			StatementHandle,
245cdf0e10cSrcweir 													SQLCHAR *			StatementText,
246cdf0e10cSrcweir 													SQLINTEGER			TextLength);
247cdf0e10cSrcweir 
248cdf0e10cSrcweir 	#define N3SQLExecDirect(a,b,c) (*(T3SQLExecDirect)getOdbcFunction(ODBC3SQLExecDirect))(a,b,c)
249cdf0e10cSrcweir 
250cdf0e10cSrcweir 	/*typedef SQLRETURN  (SQL_API  *T3SQLNativeSql) (	SQLHDBC				ConnectionHandle,
251cdf0e10cSrcweir 													SQLCHAR *			InStatementText,
252cdf0e10cSrcweir 													SQLINTEGER			TextLength1,
253cdf0e10cSrcweir 													SQLCHAR *			utStatementText,
254cdf0e10cSrcweir 													SQLINTEGER			BufferLength,
255cdf0e10cSrcweir 													SQLINTEGER *		TextLength2Ptr);
256cdf0e10cSrcweir 
257cdf0e10cSrcweir 	#define N3SQLNativeSql(a,b,c,d,e,f) (*(T3SQLNativeSql)getOdbcFunction(ODBC3SQLNativeSql))(a,b,c,d,e,f)*/
258cdf0e10cSrcweir 
259cdf0e10cSrcweir 	typedef SQLRETURN (SQL_API  *T3SQLDescribeParam) (SQLHSTMT			StatementHandle,
260cdf0e10cSrcweir 													SQLUSMALLINT		ParameterNumber,
261cdf0e10cSrcweir 													SQLSMALLINT *		DataTypePtr,
262cdf0e10cSrcweir 													SQLULEN *			ParameterSizePtr,
263cdf0e10cSrcweir 													SQLSMALLINT *		DecimalDigitsPtr,
264cdf0e10cSrcweir 													SQLSMALLINT *		NullablePtr);
265cdf0e10cSrcweir 
266cdf0e10cSrcweir 	#define N3SQLDescribeParam(a,b,c,d,e,f) (*(T3SQLDescribeParam)getOdbcFunction(ODBC3SQLDescribeParam))(a,b,c,d,e,f)
267cdf0e10cSrcweir 
268cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLNumParams) (	SQLHSTMT			StatementHandle,
269cdf0e10cSrcweir 													SQLSMALLINT *		ParameterCountPtr);
270cdf0e10cSrcweir 
271cdf0e10cSrcweir 	#define N3SQLNumParams(a,b) (*(T3SQLNumParams)getOdbcFunction(ODBC3SQLNumParams))(a,b)
272cdf0e10cSrcweir 
273cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLParamData) (	SQLHSTMT			StatementHandle,
274cdf0e10cSrcweir 													SQLPOINTER *		ValuePtrPtr);
275cdf0e10cSrcweir 
276cdf0e10cSrcweir 	#define N3SQLParamData(a,b) (*(T3SQLParamData)getOdbcFunction(ODBC3SQLParamData))(a,b)
277cdf0e10cSrcweir 
278cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLPutData) (		SQLHSTMT			StatementHandle,
279cdf0e10cSrcweir 													SQLPOINTER			DataPtr,
280cdf0e10cSrcweir 													SQLLEN				StrLen_or_Ind);
281cdf0e10cSrcweir 
282cdf0e10cSrcweir 	#define N3SQLPutData(a,b,c) (*(T3SQLPutData)getOdbcFunction(ODBC3SQLPutData))(a,b,c)
283cdf0e10cSrcweir 
284cdf0e10cSrcweir 	// Retrieving results and information about results
285cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLRowCount) (	SQLHSTMT			StatementHandle,
286cdf0e10cSrcweir 													SQLLEN *			RowCountPtr);
287cdf0e10cSrcweir 
288cdf0e10cSrcweir 	#define N3SQLRowCount(a,b) (*(T3SQLRowCount)getOdbcFunction(ODBC3SQLRowCount))(a,b)
289cdf0e10cSrcweir 
290cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLNumResultCols) (SQLHSTMT			StatementHandle,
291cdf0e10cSrcweir 													SQLSMALLINT *		ColumnCountPtr);
292cdf0e10cSrcweir 
293cdf0e10cSrcweir 	#define N3SQLNumResultCols(a,b) (*(T3SQLNumResultCols)getOdbcFunction(ODBC3SQLNumResultCols))(a,b)
294cdf0e10cSrcweir 
295cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLDescribeCol) (	SQLHSTMT			StatementHandle,
296cdf0e10cSrcweir 													SQLUSMALLINT		ColumnNumber,
297cdf0e10cSrcweir 													SQLCHAR *			ColumnName,
298cdf0e10cSrcweir 													SQLSMALLINT			BufferLength,
299cdf0e10cSrcweir 													SQLSMALLINT *		NameLengthPtr,
300cdf0e10cSrcweir 													SQLSMALLINT *		DataTypePtr,
301cdf0e10cSrcweir 													SQLULEN *			ColumnSizePtr,
302cdf0e10cSrcweir 													SQLSMALLINT *		DecimalDigitsPtr,
303cdf0e10cSrcweir 													SQLSMALLINT *		NullablePtr);
304cdf0e10cSrcweir 
305cdf0e10cSrcweir 	#define N3SQLDescribeCol(a,b,c,d,e,f,g,h,i) (*(T3SQLDescribeCol)getOdbcFunction(ODBC3SQLDescribeCol))(a,b,c,d,e,f,g,h,i)
306cdf0e10cSrcweir 
307cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLColAttribute) (SQLHSTMT			StatementHandle,
308cdf0e10cSrcweir 													SQLUSMALLINT		ColumnNumber,
309cdf0e10cSrcweir 													SQLUSMALLINT		FieldIdentifier,
310cdf0e10cSrcweir 													SQLPOINTER			CharacterAttributePtr,
311cdf0e10cSrcweir 													SQLSMALLINT			BufferLength,
312cdf0e10cSrcweir 													SQLSMALLINT *		StringLengthPtr,
313cdf0e10cSrcweir 													SQLLEN *			NumericAttributePtr);
314cdf0e10cSrcweir 
315cdf0e10cSrcweir 	#define N3SQLColAttribute(a,b,c,d,e,f,g) (*(T3SQLColAttribute)getOdbcFunction(ODBC3SQLColAttribute))(a,b,c,d,e,f,g)
316cdf0e10cSrcweir 
317cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLBindCol) (		SQLHSTMT			StatementHandle,
318cdf0e10cSrcweir 													SQLUSMALLINT		ColumnNumber,
319cdf0e10cSrcweir 													SQLSMALLINT			TargetType,
320cdf0e10cSrcweir 													SQLPOINTER			TargetValuePtr,
321cdf0e10cSrcweir 													SQLLEN				BufferLength,
322cdf0e10cSrcweir 													SQLLEN *			StrLen_or_IndPtr);
323cdf0e10cSrcweir 
324cdf0e10cSrcweir 	#define N3SQLBindCol(a,b,c,d,e,f) (*(T3SQLBindCol)getOdbcFunction(ODBC3SQLBindCol))(a,b,c,d,e,f)
325cdf0e10cSrcweir 
326cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLFetch) (		SQLHSTMT			StatementHandle);
327cdf0e10cSrcweir 
328cdf0e10cSrcweir 	#define N3SQLFetch(a) (*(T3SQLFetch)getOdbcFunction(ODBC3SQLFetch))(a)
329cdf0e10cSrcweir 
330cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLFetchScroll) (	SQLHSTMT			StatementHandle,
331cdf0e10cSrcweir 													SQLSMALLINT			FetchOrientation,
332cdf0e10cSrcweir 													SQLLEN				FetchOffset);
333cdf0e10cSrcweir 
334cdf0e10cSrcweir 	#define N3SQLFetchScroll(a,b,c) (*(T3SQLFetchScroll)getOdbcFunction(ODBC3SQLFetchScroll))(a,b,c)
335cdf0e10cSrcweir 
336cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLGetData) (		SQLHSTMT			StatementHandle,
337cdf0e10cSrcweir 													SQLUSMALLINT		ColumnNumber,
338cdf0e10cSrcweir 													SQLSMALLINT			TargetType,
339cdf0e10cSrcweir 													SQLPOINTER			TargetValuePtr,
340cdf0e10cSrcweir 													SQLLEN				BufferLength,
341cdf0e10cSrcweir 													SQLLEN *			StrLen_or_IndPtr);
342cdf0e10cSrcweir 
343cdf0e10cSrcweir 	#define N3SQLGetData(a,b,c,d,e,f) (*(T3SQLGetData)getOdbcFunction(ODBC3SQLGetData))(a,b,c,d,e,f)
344cdf0e10cSrcweir 
345cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLSetPos) (		SQLHSTMT			StatementHandle,
346cdf0e10cSrcweir 													SQLSETPOSIROW		RowNumber,
347cdf0e10cSrcweir 													SQLUSMALLINT		Operation,
348cdf0e10cSrcweir 													SQLUSMALLINT		LockType);
349cdf0e10cSrcweir 
350cdf0e10cSrcweir 	#define N3SQLSetPos(a,b,c,d) (*(T3SQLSetPos)getOdbcFunction(ODBC3SQLSetPos))(a,b,c,d)
351cdf0e10cSrcweir 
352cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLBulkOperations) (	SQLHSTMT		StatementHandle,
353cdf0e10cSrcweir 														SQLSMALLINT	Operation);
354cdf0e10cSrcweir 
355cdf0e10cSrcweir 	#define N3SQLBulkOperations(a,b) (*(T3SQLBulkOperations)getOdbcFunction(ODBC3SQLBulkOperations))(a,b)
356cdf0e10cSrcweir 
357cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLMoreResults) (	SQLHSTMT			StatementHandle);
358cdf0e10cSrcweir 
359cdf0e10cSrcweir 	#define N3SQLMoreResults(a) (*(T3SQLMoreResults)getOdbcFunction(ODBC3SQLMoreResults))(a)
360cdf0e10cSrcweir 
361cdf0e10cSrcweir 	/*typedef SQLRETURN  (SQL_API  *T3SQLGetDiagField) (SQLSMALLINT			HandleType,
362cdf0e10cSrcweir 													SQLHANDLE			Handle,
363cdf0e10cSrcweir 													SQLSMALLINT			RecNumber,
364cdf0e10cSrcweir 													SQLSMALLINT			DiagIdentifier,
365cdf0e10cSrcweir 													SQLPOINTER			DiagInfoPtr,
366cdf0e10cSrcweir 													SQLSMALLINT			BufferLength,
367cdf0e10cSrcweir 													SQLSMALLINT *		StringLengthPtr);
368cdf0e10cSrcweir 
369cdf0e10cSrcweir 	#define N3SQLGetDiagField(a,b,c,d,e,f,g) (*(T3SQLGetDiagField)getOdbcFunction(ODBC3SQLGetDiagField))(a,b,c,d,e,f,g)*/
370cdf0e10cSrcweir 
371cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLGetDiagRec) (	SQLSMALLINT			HandleType,
372cdf0e10cSrcweir 													SQLHANDLE			Handle,
373cdf0e10cSrcweir 													SQLSMALLINT			RecNumber,
374cdf0e10cSrcweir 													SQLCHAR *			Sqlstate,
375cdf0e10cSrcweir 													SQLINTEGER *		NativeErrorPtr,
376cdf0e10cSrcweir 													SQLCHAR *			MessageText,
377cdf0e10cSrcweir 													SQLSMALLINT			BufferLength,
378cdf0e10cSrcweir 													SQLSMALLINT *		TextLengthPtr);
379cdf0e10cSrcweir 
380cdf0e10cSrcweir 
381cdf0e10cSrcweir 	#define N3SQLGetDiagRec(a,b,c,d,e,f,g,h) (*(T3SQLGetDiagRec)getOdbcFunction(ODBC3SQLGetDiagRec))(a,b,c,d,e,f,g,h)
382cdf0e10cSrcweir 
383cdf0e10cSrcweir     // Obtaining information about the data source's system tables (catalog functions)
384cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLColumnPrivileges) (SQLHSTMT		StatementHandle,
385cdf0e10cSrcweir 													SQLCHAR *			CatalogName,
386cdf0e10cSrcweir 													SQLSMALLINT			NameLength1,
387cdf0e10cSrcweir 													SQLCHAR *			SchemaName,
388cdf0e10cSrcweir 													SQLSMALLINT			NameLength2,
389cdf0e10cSrcweir 													SQLCHAR *			TableName,
390cdf0e10cSrcweir 													SQLSMALLINT			NameLength3,
391cdf0e10cSrcweir 													SQLCHAR *			ColumnName,
392cdf0e10cSrcweir 													SQLSMALLINT			NameLength4);
393cdf0e10cSrcweir 
394cdf0e10cSrcweir 	#define N3SQLColumnPrivileges(a,b,c,d,e,f,g,h,i) (*(T3SQLColumnPrivileges)getOdbcFunction(ODBC3SQLColumnPrivileges))(a,b,c,d,e,f,g,h,i)
395cdf0e10cSrcweir 
396cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLColumns) (		SQLHSTMT			StatementHandle,
397cdf0e10cSrcweir 													SQLCHAR *			CatalogName,
398cdf0e10cSrcweir 													SQLSMALLINT			NameLength1,
399cdf0e10cSrcweir 													SQLCHAR *			SchemaName,
400cdf0e10cSrcweir 													SQLSMALLINT			NameLength2,
401cdf0e10cSrcweir 													SQLCHAR *			TableName,
402cdf0e10cSrcweir 													SQLSMALLINT			NameLength3,
403cdf0e10cSrcweir 													SQLCHAR *			ColumnName,
404cdf0e10cSrcweir 													SQLSMALLINT			NameLength4);
405cdf0e10cSrcweir 
406cdf0e10cSrcweir 	#define N3SQLColumns(a,b,c,d,e,f,g,h,i) (*(T3SQLColumns)getOdbcFunction(ODBC3SQLColumns))(a,b,c,d,e,f,g,h,i)
407cdf0e10cSrcweir 
408cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLForeignKeys) (	SQLHSTMT			StatementHandle,
409cdf0e10cSrcweir 													SQLCHAR *			PKCatalogName,
410cdf0e10cSrcweir 													SQLSMALLINT			NameLength1,
411cdf0e10cSrcweir 													SQLCHAR *			PKSchemaName,
412cdf0e10cSrcweir 													SQLSMALLINT			NameLength2,
413cdf0e10cSrcweir 													SQLCHAR *			PKTableName,
414cdf0e10cSrcweir 													SQLSMALLINT			NameLength3,
415cdf0e10cSrcweir 													SQLCHAR *			FKCatalogName,
416cdf0e10cSrcweir 													SQLSMALLINT			NameLength4,
417cdf0e10cSrcweir 													SQLCHAR *			FKSchemaName,
418cdf0e10cSrcweir 													SQLSMALLINT			NameLength5,
419cdf0e10cSrcweir 													SQLCHAR *			FKTableName,
420cdf0e10cSrcweir 													SQLSMALLINT			NameLength6);
421cdf0e10cSrcweir 
422cdf0e10cSrcweir 	#define N3SQLForeignKeys(a,b,c,d,e,f,g,h,i,j,k,l,m) (*(T3SQLForeignKeys)getOdbcFunction(ODBC3SQLForeignKeys))(a,b,c,d,e,f,g,h,i,j,k,l,m)
423cdf0e10cSrcweir 
424cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLPrimaryKeys) (	SQLHSTMT			StatementHandle,
425cdf0e10cSrcweir 													SQLCHAR *			CatalogName,
426cdf0e10cSrcweir 													SQLSMALLINT			NameLength1,
427cdf0e10cSrcweir 													SQLCHAR *			SchemaName,
428cdf0e10cSrcweir 													SQLSMALLINT			NameLength2,
429cdf0e10cSrcweir 													SQLCHAR *			TableName,
430cdf0e10cSrcweir 													SQLSMALLINT			NameLength3);
431cdf0e10cSrcweir 
432cdf0e10cSrcweir 	#define N3SQLPrimaryKeys(a,b,c,d,e,f,g) (*(T3SQLPrimaryKeys)getOdbcFunction(ODBC3SQLPrimaryKeys))(a,b,c,d,e,f,g)
433cdf0e10cSrcweir 
434cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLProcedureColumns) (SQLHSTMT		StatementHandle,
435cdf0e10cSrcweir 													SQLCHAR *			CatalogName,
436cdf0e10cSrcweir 													SQLSMALLINT			NameLength1,
437cdf0e10cSrcweir 													SQLCHAR *			SchemaName,
438cdf0e10cSrcweir 													SQLSMALLINT			NameLength2,
439cdf0e10cSrcweir 													SQLCHAR *			ProcName,
440cdf0e10cSrcweir 													SQLSMALLINT			NameLength3,
441cdf0e10cSrcweir 													SQLCHAR *			ColumnName,
442cdf0e10cSrcweir 													SQLSMALLINT			NameLength4);
443cdf0e10cSrcweir 
444cdf0e10cSrcweir 	#define N3SQLProcedureColumns(a,b,c,d,e,f,g,h,i) (*(T3SQLProcedureColumns)getOdbcFunction(ODBC3SQLProcedureColumns))(a,b,c,d,e,f,g,h,i)
445cdf0e10cSrcweir 
446cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLProcedures) (	SQLHSTMT			StatementHandle,
447cdf0e10cSrcweir 													SQLCHAR *			CatalogName,
448cdf0e10cSrcweir 													SQLSMALLINT			NameLength1,
449cdf0e10cSrcweir 													SQLCHAR *			SchemaName,
450cdf0e10cSrcweir 													SQLSMALLINT			NameLength2,
451cdf0e10cSrcweir 													SQLCHAR *			ProcName,
452cdf0e10cSrcweir 													SQLSMALLINT			NameLength3);
453cdf0e10cSrcweir 
454cdf0e10cSrcweir 	#define N3SQLProcedures(a,b,c,d,e,f,g) (*(T3SQLProcedures)getOdbcFunction(ODBC3SQLProcedures))(a,b,c,d,e,f,g)
455cdf0e10cSrcweir 
456cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLSpecialColumns) (SQLHSTMT			StatementHandle,
457cdf0e10cSrcweir 													SQLUSMALLINT		IdentifierType,
458cdf0e10cSrcweir 													SQLCHAR *			CatalogName,
459cdf0e10cSrcweir 													SQLSMALLINT			NameLength1,
460cdf0e10cSrcweir 													SQLCHAR *			SchemaName,
461cdf0e10cSrcweir 													SQLSMALLINT			NameLength2,
462cdf0e10cSrcweir 													SQLCHAR *			TableName,
463cdf0e10cSrcweir 													SQLSMALLINT			NameLength3,
464cdf0e10cSrcweir 													SQLUSMALLINT		Scope,
465cdf0e10cSrcweir 													SQLUSMALLINT		Nullable);
466cdf0e10cSrcweir 
467cdf0e10cSrcweir 	#define N3SQLSpecialColumns(a,b,c,d,e,f,g,h,i,j) (*(T3SQLSpecialColumns)getOdbcFunction(ODBC3SQLSpecialColumns))(a,b,c,d,e,f,g,h,i,j)
468cdf0e10cSrcweir 
469cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLStatistics) (	SQLHSTMT			StatementHandle,
470cdf0e10cSrcweir 													SQLCHAR *			CatalogName,
471cdf0e10cSrcweir 													SQLSMALLINT			NameLength1,
472cdf0e10cSrcweir 													SQLCHAR *			SchemaName,
473cdf0e10cSrcweir 													SQLSMALLINT			NameLength2,
474cdf0e10cSrcweir 													SQLCHAR *			TableName,
475cdf0e10cSrcweir 													SQLSMALLINT			NameLength3,
476cdf0e10cSrcweir 													SQLUSMALLINT		Unique,
477cdf0e10cSrcweir 													SQLUSMALLINT		Reserved);
478cdf0e10cSrcweir 
479cdf0e10cSrcweir 	#define N3SQLStatistics(a,b,c,d,e,f,g,h,i) (*(T3SQLStatistics)getOdbcFunction(ODBC3SQLStatistics))(a,b,c,d,e,f,g,h,i)
480cdf0e10cSrcweir 
481cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLTablePrivileges) (SQLHSTMT			StatementHandle,
482cdf0e10cSrcweir 													SQLCHAR *			CatalogName,
483cdf0e10cSrcweir 													SQLSMALLINT			NameLength1,
484cdf0e10cSrcweir 													SQLCHAR *			SchemaName,
485cdf0e10cSrcweir 													SQLSMALLINT			NameLength2,
486cdf0e10cSrcweir 													SQLCHAR *			TableName,
487cdf0e10cSrcweir 													SQLSMALLINT			NameLength3);
488cdf0e10cSrcweir 
489cdf0e10cSrcweir 	#define N3SQLTablePrivileges(a,b,c,d,e,f,g) (*(T3SQLTablePrivileges)getOdbcFunction(ODBC3SQLTablePrivileges))(a,b,c,d,e,f,g)
490cdf0e10cSrcweir 
491cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLTables) (	SQLHSTMT				StatementHandle,
492cdf0e10cSrcweir 													SQLCHAR *				CatalogName,
493cdf0e10cSrcweir 													SQLSMALLINT				NameLength1,
494cdf0e10cSrcweir 													SQLCHAR *				SchemaName,
495cdf0e10cSrcweir 													SQLSMALLINT				NameLength2,
496cdf0e10cSrcweir 													SQLCHAR *				TableName,
497cdf0e10cSrcweir 													SQLSMALLINT				NameLength3,
498cdf0e10cSrcweir 													SQLCHAR *				TableType,
499cdf0e10cSrcweir 													SQLSMALLINT				NameLength4);
500cdf0e10cSrcweir 
501cdf0e10cSrcweir 	#define N3SQLTables(a,b,c,d,e,f,g,h,i) (*(T3SQLTables)getOdbcFunction(ODBC3SQLTables))(a,b,c,d,e,f,g,h,i)
502cdf0e10cSrcweir 
503cdf0e10cSrcweir 	// Terminating a statement
504cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLFreeStmt) (	SQLHSTMT				StatementHandle,
505cdf0e10cSrcweir 													SQLUSMALLINT			Option);
506cdf0e10cSrcweir 
507cdf0e10cSrcweir 	#define N3SQLFreeStmt(a,b) (*(T3SQLFreeStmt)getOdbcFunction(ODBC3SQLFreeStmt))(a,b)
508cdf0e10cSrcweir 
509cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLCloseCursor) (SQLHSTMT			StatementHandle);
510cdf0e10cSrcweir 
511cdf0e10cSrcweir 	#define N3SQLCloseCursor(a) (*(T3SQLCloseCursor)getOdbcFunction(ODBC3SQLCloseCursor))(a)
512cdf0e10cSrcweir 
513cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLCancel) (	SQLHSTMT				StatementHandle);
514cdf0e10cSrcweir 
515cdf0e10cSrcweir 	#define N3SQLCancel(a) (*(T3SQLCancel)getOdbcFunction(ODBC3SQLCancel))(a)
516cdf0e10cSrcweir 
517cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLEndTran) (	SQLSMALLINT				HandleType,
518cdf0e10cSrcweir 													SQLHANDLE				Handle,
519cdf0e10cSrcweir 													SQLSMALLINT				CompletionType);
520cdf0e10cSrcweir 
521cdf0e10cSrcweir 	#define N3SQLEndTran(a,b,c) (*(T3SQLEndTran)getOdbcFunction(ODBC3SQLEndTran))(a,b,c)
522cdf0e10cSrcweir 
523cdf0e10cSrcweir 	// Terminating a connection
524cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLDisconnect) (SQLHDBC	ConnectionHandle);
525cdf0e10cSrcweir 
526cdf0e10cSrcweir 	#define N3SQLDisconnect(a) (*(T3SQLDisconnect)getOdbcFunction(ODBC3SQLDisconnect))(a)
527cdf0e10cSrcweir 
528cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLFreeHandle) (SQLSMALLINT				HandleType,
529cdf0e10cSrcweir 													SQLHANDLE				Handle);
530cdf0e10cSrcweir 
531cdf0e10cSrcweir 	#define N3SQLFreeHandle(a,b) (*(T3SQLFreeHandle)getOdbcFunction(ODBC3SQLFreeHandle))(a,b)
532cdf0e10cSrcweir 
533cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLGetCursorName) (	SQLHSTMT			StatementHandle,
534cdf0e10cSrcweir 														SQLCHAR *			CursorName,
535cdf0e10cSrcweir 														SQLSMALLINT			BufferLength,
536cdf0e10cSrcweir 														SQLSMALLINT*		NameLength2);
537cdf0e10cSrcweir 
538cdf0e10cSrcweir 	#define N3SQLGetCursorName(a,b,c,d) (*(T3SQLGetCursorName)getOdbcFunction(ODBC3SQLGetCursorName))(a,b,c,d)
539cdf0e10cSrcweir 
540cdf0e10cSrcweir 	typedef SQLRETURN  (SQL_API  *T3SQLNativeSql) (	SQLHSTMT				ConnectionHandle,
541cdf0e10cSrcweir 													SQLCHAR *				InStatementText,
542cdf0e10cSrcweir 													SQLINTEGER				TextLength1,
543cdf0e10cSrcweir 													SQLCHAR *				OutStatementText,
544cdf0e10cSrcweir 													SQLINTEGER				BufferLength,
545cdf0e10cSrcweir 													SQLINTEGER *			TextLength2Ptr);
546cdf0e10cSrcweir 
547cdf0e10cSrcweir 	#define N3SQLNativeSql(a,b,c,d,e,f) (*(T3SQLNativeSql)getOdbcFunction(ODBC3SQLNativeSql))(a,b,c,d,e,f)
548cdf0e10cSrcweir }
549cdf0e10cSrcweir 
550cdf0e10cSrcweir #endif // _CONNECTIVITY_ODBC_OFUNCTIONS_HXX_
551cdf0e10cSrcweir 
552cdf0e10cSrcweir 
553