X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7e616b1050e4aaa4b8468d82ddf5b85d46412a3c..efd1393bccefbb6cf12f82d5e10a4fb6080e6702:/src/iodbc/hstmt.h?ds=sidebyside diff --git a/src/iodbc/hstmt.h b/src/iodbc/hstmt.h index 99e826e5fa..505200993a 100644 --- a/src/iodbc/hstmt.h +++ b/src/iodbc/hstmt.h @@ -1,48 +1,75 @@ -#ifndef _HSTMT_H -#define _HSTMT_H +/* + * hstmt.h + * + * $Id$ + * + * Query statement object management functions + * + * The iODBC driver manager. + * + * Copyright (C) 1995 by Ke Jin + * + * 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 _HSTMT_H +#define _HSTMT_H -#include +#include "config.h" -#include -#include +#include "isql.h" +#include "isqlext.h" typedef struct STMT -{ - int type; /* must be 1st field */ - - struct STMT* next; - - HERR herr; - HDBC hdbc; /* back point to connection object */ - HSTMT dhstmt; /* driver's stmt handle */ - - int state; - int cursor_state; - int prep_state; - int asyn_on; /* async executing which odbc call */ - int need_on; /* which call return SQL_NEED_DATA */ -} STMT_t; - -enum { - en_stmt_allocated = 0, - en_stmt_prepared, - en_stmt_executed, - en_stmt_cursoropen, - en_stmt_fetched, - en_stmt_xfetched, - en_stmt_needdata, /* not call SQLParamData() yet */ - en_stmt_mustput, /* not call SQLPutData() yet */ - en_stmt_canput /* SQLPutData() called */ -}; /* for statement handle state */ - -enum { - en_stmt_cursor_no = 0, - en_stmt_cursor_named, - en_stmt_cursor_opened, - en_stmt_cursor_fetched, - en_stmt_cursor_xfetched -}; /* for statement cursor state */ - -extern RETCODE _iodbcdm_dropstmt(); + { + int type; /* must be 1st field */ + struct STMT *next; + + HERR herr; + HDBC hdbc; /* back point to connection object */ + HSTMT dhstmt; /* driver's stmt handle */ + + int state; + int cursor_state; + int prep_state; + int asyn_on; /* async executing which odbc call */ + int need_on; /* which call return SQL_NEED_DATA */ + } +STMT_t; + +enum + { + en_stmt_allocated = 0, + en_stmt_prepared, + en_stmt_executed, + en_stmt_cursoropen, + en_stmt_fetched, + en_stmt_xfetched, + en_stmt_needdata, /* not call SQLParamData() yet */ + en_stmt_mustput, /* not call SQLPutData() yet */ + en_stmt_canput /* SQLPutData() called */ + }; /* for statement handle state */ + +enum + { + en_stmt_cursor_no = 0, + en_stmt_cursor_named, + en_stmt_cursor_opened, + en_stmt_cursor_fetched, + en_stmt_cursor_xfetched + }; /* for statement cursor state */ + +extern RETCODE _iodbcdm_dropstmt (); #endif