📄 hdesc.h
字号:
/* * hdesc.h * * $Id: hdesc.h,v 1.2 2000/01/28 14:08:40 source Exp $ * * Descriptor object * * The iODBC driver manager. * * Copyright (C) 1999 by OpenLink Software <iodbc@openlinksw.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */#ifndef __DESC_H#define __DESC_H#define APP_ROW_DESC 0#define APP_PARAM_DESC 1#define IMP_ROW_DESC 2#define IMP_PARAM_DESC 3typedef struct DESC_s { int type; HERR herr; /* list of descriptor errors */ SQLRETURN rc; struct DESC_s *next; SQLHDBC hdbc; /* connection associated with the descriptor */ SQLHDESC dhdesc; /* the driver's desc handle */ HSTMT hstmt; /* if not null - the descriptor is implicit to that statement */ SWORD desc_cip; /* Call in Progess flag */ } DESC_t;#ifndef HDESC#define HDESC SQLHDESC#endif#define IS_VALID_HDESC(x) \ ((x) != SQL_NULL_HDESC && \ ((DESC_t FAR *)(x))->type == SQL_HANDLE_DESC && \ ((DESC_t FAR *)(x))->hdbc != SQL_NULL_HDBC)#define ENTER_HDESC(pdesc) \ ODBC_LOCK();\ if (!IS_VALID_HDESC (pdesc)) \ { \ ODBC_UNLOCK (); \ return SQL_INVALID_HANDLE; \ } \ else if (pdesc->desc_cip) \ { \ PUSHSQLERR (pdesc->herr, en_S1010); \ ODBC_UNLOCK(); \ return SQL_ERROR; \ } \ pdesc->desc_cip = 1; \ CLEAR_ERRORS (pdesc); \ ODBC_UNLOCK();#define LEAVE_HDESC(pdesc, err) \ pdesc->desc_cip = 0; \ return (err);#endif /* __DESC_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -