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): ______________________________________.
|
2008-03-13 17:37:20 +01:00
|
|
|
* Adriano dos Santos Fernandes
|
2001-05-23 15:26:42 +02:00
|
|
|
*/
|
|
|
|
|
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
|
|
|
|
2004-12-17 06:41:47 +01:00
|
|
|
#include "../common/classes/fb_string.h"
|
2004-03-20 15:57:40 +01:00
|
|
|
|
|
|
|
namespace Jrd {
|
|
|
|
class Attachment;
|
|
|
|
class jrd_tra;
|
2008-02-28 14:48:16 +01:00
|
|
|
class dsql_req;
|
2004-03-20 15:57:40 +01:00
|
|
|
}
|
|
|
|
|
2009-01-05 09:48:32 +01:00
|
|
|
Jrd::dsql_req* DSQL_allocate_statement(Jrd::thread_db*, Jrd::Attachment*);
|
|
|
|
void DSQL_execute(Jrd::thread_db*, Jrd::jrd_tra**, Jrd::dsql_req*,
|
2008-02-28 14:48:16 +01:00
|
|
|
USHORT, const UCHAR*,
|
|
|
|
USHORT, USHORT, const UCHAR*,
|
|
|
|
USHORT, UCHAR*,
|
|
|
|
USHORT, USHORT, UCHAR*);
|
2009-01-05 09:48:32 +01:00
|
|
|
void DSQL_execute_immediate(Jrd::thread_db*, Jrd::Attachment*, Jrd::jrd_tra**,
|
2008-02-28 14:48:16 +01:00
|
|
|
USHORT, const TEXT*, USHORT,
|
|
|
|
USHORT, const UCHAR*,
|
|
|
|
USHORT, USHORT, const UCHAR*,
|
|
|
|
USHORT, UCHAR*,
|
|
|
|
USHORT, USHORT, UCHAR*);
|
2001-05-23 15:26:42 +02:00
|
|
|
#ifdef SCROLLABLE_CURSORS
|
2009-01-05 09:48:32 +01:00
|
|
|
ISC_STATUS DSQL_fetch(Jrd::thread_db*, Jrd::dsql_req*,
|
2008-02-28 14:48:16 +01:00
|
|
|
USHORT, const UCHAR*,
|
|
|
|
USHORT, USHORT, UCHAR*,
|
|
|
|
USHORT, SLONG);
|
2001-05-23 15:26:42 +02:00
|
|
|
#else
|
2009-01-05 09:48:32 +01:00
|
|
|
ISC_STATUS DSQL_fetch(Jrd::thread_db*, Jrd::dsql_req*,
|
2008-02-28 14:48:16 +01:00
|
|
|
USHORT, const UCHAR*,
|
|
|
|
USHORT, USHORT, UCHAR*);
|
2008-12-05 01:56:15 +01:00
|
|
|
#endif // SCROLLABLE_CURSORS
|
2009-01-05 09:48:32 +01:00
|
|
|
void DSQL_free_statement(Jrd::thread_db*, Jrd::dsql_req*, USHORT);
|
|
|
|
void DSQL_insert(Jrd::thread_db*, Jrd::dsql_req*,
|
2008-02-28 14:48:16 +01:00
|
|
|
USHORT, const UCHAR*,
|
|
|
|
USHORT, USHORT, const UCHAR*);
|
2009-01-05 09:48:32 +01:00
|
|
|
void DSQL_prepare(Jrd::thread_db*, Jrd::jrd_tra*, Jrd::dsql_req**,
|
2008-02-28 14:48:16 +01:00
|
|
|
USHORT, const TEXT*,
|
|
|
|
USHORT, USHORT, const UCHAR*,
|
|
|
|
USHORT, UCHAR*);
|
2009-01-05 09:48:32 +01:00
|
|
|
void DSQL_set_cursor(Jrd::thread_db*, Jrd::dsql_req*, const TEXT*, USHORT);
|
|
|
|
void DSQL_sql_info(Jrd::thread_db*, Jrd::dsql_req*,
|
2008-02-28 14:48:16 +01:00
|
|
|
USHORT, const UCHAR*,
|
|
|
|
USHORT, UCHAR*);
|
2009-02-01 23:10:12 +01:00
|
|
|
USHORT DSQL_get_plan_info(Jrd::thread_db*,
|
|
|
|
Jrd::dsql_req*,
|
|
|
|
SSHORT,
|
|
|
|
SCHAR**);
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2003-09-26 12:50:59 +02:00
|
|
|
#endif // DSQL_DSQL_PROTO_H
|