sqldrivers.c

来自「这个是内存数据库的客户端」· C语言 代码 · 共 57 行

C
57
字号
/* * The contents of this file are subject to the MonetDB Public License * Version 1.1 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * http://monetdb.cwi.nl/Legal/MonetDBLicense-1.1.html * * Software distributed under the License is distributed on an "AS IS" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the * License for the specific language governing rights and limitations * under the License. * * The Original Code is the MonetDB Database System. * * The Initial Developer of the Original Code is CWI. * Portions created by CWI are Copyright (C) 1997-2007 CWI. * All Rights Reserved. */#include "ODBCGlobal.h"#include "ODBCEnv.h"SQLRETURN SQL_APISQLDrivers(SQLHENV EnvironmentHandle, SQLUSMALLINT Direction, SQLCHAR *DriverDescription, SQLSMALLINT BufferLength1, SQLSMALLINT *DescriptionLengthPtr, SQLCHAR *DriverAttributes, SQLSMALLINT BufferLength2, SQLSMALLINT *AttributesLengthPtr){	(void) Direction;	(void) DriverDescription;	(void) BufferLength1;	(void) DescriptionLengthPtr;	(void) DriverAttributes;	(void) BufferLength2;	(void) AttributesLengthPtr;	addEnvError((ODBCEnv *) EnvironmentHandle, "HY000", "Driver Manager only function", 0);	return SQL_ERROR;}#ifdef WITH_WCHARSQLRETURN SQL_APISQLDriversA(SQLHENV EnvironmentHandle, SQLUSMALLINT Direction, SQLCHAR *DriverDescription, SQLSMALLINT BufferLength1, SQLSMALLINT *DescriptionLengthPtr, SQLCHAR *DriverAttributes, SQLSMALLINT BufferLength2, SQLSMALLINT *AttributesLengthPtr){	return SQLDrivers(EnvironmentHandle, Direction, DriverDescription, BufferLength1, DescriptionLengthPtr, DriverAttributes, BufferLength2, AttributesLengthPtr);}SQLRETURN SQL_APISQLDriversW(SQLHENV EnvironmentHandle, SQLUSMALLINT Direction, SQLWCHAR * DriverDescription, SQLSMALLINT BufferLength1, SQLSMALLINT *DescriptionLengthPtr, SQLWCHAR * DriverAttributes, SQLSMALLINT BufferLength2, SQLSMALLINT *AttributesLengthPtr){	(void) Direction;	(void) DriverDescription;	(void) BufferLength1;	(void) DescriptionLengthPtr;	(void) DriverAttributes;	(void) BufferLength2;	(void) AttributesLengthPtr;	addEnvError((ODBCEnv *) EnvironmentHandle, "HY000", "Driver Manager only function", 0);	return SQL_ERROR;}#endif /* WITH_WCHAR */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?