2001-05-23 15:26:42 +02:00
|
|
|
/*
|
|
|
|
* PROGRAM: Dynamic SQL runtime support
|
|
|
|
* MODULE: dsql_proto.h
|
2003-09-29 14:43:14 +02:00
|
|
|
* DESCRIPTION: Prototype Header file for dsql.cpp
|
2001-05-23 15:26:42 +02:00
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Interbase Public
|
|
|
|
* License Version 1.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy
|
|
|
|
* of the License at http://www.Inprise.com/IPL.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 was created by Inprise Corporation
|
|
|
|
* and its predecessors. Portions created by Inprise Corporation are
|
|
|
|
* Copyright (C) Inprise Corporation.
|
|
|
|
*
|
|
|
|
* All Rights Reserved.
|
|
|
|
* Contributor(s): ______________________________________.
|
|
|
|
*/
|
|
|
|
|
2003-09-26 12:50:59 +02:00
|
|
|
#ifndef DSQL_DSQL_PROTO_H
|
|
|
|
#define DSQL_DSQL_PROTO_H
|
2001-05-23 15:26:42 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2003-10-05 08:33:56 +02:00
|
|
|
ISC_STATUS dsql8_allocate_statement(ISC_STATUS*,
|
|
|
|
FRBRD**,
|
|
|
|
struct dsql_req**);
|
|
|
|
ISC_STATUS dsql8_execute(ISC_STATUS*, FRBRD**, struct dsql_req**,
|
|
|
|
USHORT, SCHAR*, USHORT, USHORT,
|
|
|
|
SCHAR*, USHORT, SCHAR*, USHORT,
|
|
|
|
USHORT, SCHAR*);
|
|
|
|
ISC_STATUS dsql8_execute_immediate(ISC_STATUS*, FRBRD**, FRBRD**,
|
|
|
|
USHORT, TEXT*, USHORT,
|
|
|
|
USHORT, SCHAR*, USHORT,
|
|
|
|
USHORT, SCHAR*, USHORT,
|
|
|
|
SCHAR*, USHORT, USHORT,
|
|
|
|
SCHAR*);
|
2001-05-23 15:26:42 +02:00
|
|
|
#ifdef SCROLLABLE_CURSORS
|
2003-10-05 08:33:56 +02:00
|
|
|
ISC_STATUS dsql8_fetch(ISC_STATUS*, struct dsql_req**, USHORT, SCHAR*,
|
|
|
|
USHORT, USHORT, SCHAR*, USHORT, SLONG);
|
2001-05-23 15:26:42 +02:00
|
|
|
#else
|
2003-10-05 08:33:56 +02:00
|
|
|
ISC_STATUS dsql8_fetch(ISC_STATUS*, struct dsql_req**, USHORT, SCHAR*,
|
|
|
|
USHORT, USHORT, SCHAR*);
|
2001-05-23 15:26:42 +02:00
|
|
|
#endif /* SCROLLABLE_CURSORS */
|
2003-10-05 08:33:56 +02:00
|
|
|
ISC_STATUS dsql8_free_statement(ISC_STATUS*, struct dsql_req**,
|
2001-05-23 15:26:42 +02:00
|
|
|
USHORT);
|
2003-10-05 08:33:56 +02:00
|
|
|
ISC_STATUS dsql8_insert(ISC_STATUS*, struct dsql_req**, USHORT,
|
|
|
|
SCHAR*, USHORT, USHORT, SCHAR*);
|
|
|
|
ISC_STATUS dsql8_prepare(ISC_STATUS*, FRBRD**, struct dsql_req**,
|
|
|
|
USHORT, TEXT*, USHORT, USHORT,
|
|
|
|
const SCHAR*, USHORT, SCHAR*);
|
|
|
|
ISC_STATUS dsql8_set_cursor(ISC_STATUS*, struct dsql_req**, TEXT*,
|
2001-05-23 15:26:42 +02:00
|
|
|
USHORT);
|
2003-10-05 08:33:56 +02:00
|
|
|
ISC_STATUS dsql8_sql_info(ISC_STATUS*, struct dsql_req**, USHORT,
|
|
|
|
const SCHAR*, USHORT, SCHAR*);
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2003-10-05 08:33:56 +02:00
|
|
|
ISC_STATUS callback_execute_immediate(ISC_STATUS* status,
|
2003-10-03 04:00:40 +02:00
|
|
|
class att* jrd_attachment_handle,
|
|
|
|
class jrd_tra* jrd_transaction_handle,
|
2003-10-05 08:33:56 +02:00
|
|
|
TEXT* sql_operator, int len);
|
2002-12-16 16:38:26 +01:00
|
|
|
|
|
|
|
|
2001-05-23 15:26:42 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif
|
|
|
|
|
2003-10-03 04:00:40 +02:00
|
|
|
|
2003-09-26 12:50:59 +02:00
|
|
|
#endif // DSQL_DSQL_PROTO_H
|
2003-09-29 14:43:14 +02:00
|
|
|
|