8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 09:23:03 +01:00
firebird-mirror/src/dsql/dsql_proto.h
asfernandes 7a78601ef2 1) Use metadata character set in DSQL cache
2) Make exceptions in metadata charset and convert them to the client charset - this should fix CORE-2431
3) Support for "internal" (engine) DSQL statements and use in COMMENT ON
2009-12-05 14:21:52 +00:00

68 lines
2.3 KiB
C++

/*
* PROGRAM: Dynamic SQL runtime support
* MODULE: dsql_proto.h
* DESCRIPTION: Prototype Header file for dsql.cpp
*
* 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): ______________________________________.
* Adriano dos Santos Fernandes
*/
#ifndef DSQL_DSQL_PROTO_H
#define DSQL_DSQL_PROTO_H
#include "../common/classes/fb_string.h"
namespace Jrd {
class Attachment;
class jrd_tra;
class dsql_req;
}
Jrd::dsql_req* DSQL_allocate_statement(Jrd::thread_db*, Jrd::Attachment*);
void DSQL_execute(Jrd::thread_db*, Jrd::jrd_tra**, Jrd::dsql_req*,
USHORT, const UCHAR*,
USHORT, USHORT, const UCHAR*,
USHORT, UCHAR*,
USHORT, UCHAR*);
void DSQL_execute_immediate(Jrd::thread_db*, Jrd::Attachment*, Jrd::jrd_tra**,
USHORT, const TEXT*, USHORT,
USHORT, const UCHAR*,
USHORT, const UCHAR*,
USHORT, UCHAR*,
USHORT, UCHAR*,
bool);
ISC_STATUS DSQL_fetch(Jrd::thread_db*, Jrd::dsql_req*, USHORT, const UCHAR*, USHORT, UCHAR*);
void DSQL_free_statement(Jrd::thread_db*, Jrd::dsql_req*, USHORT);
void DSQL_insert(Jrd::thread_db*, Jrd::dsql_req*,
USHORT, const UCHAR*,
USHORT, const UCHAR*);
void DSQL_prepare(Jrd::thread_db*, Jrd::jrd_tra*, Jrd::dsql_req**,
USHORT, const TEXT*,
USHORT, USHORT, const UCHAR*,
USHORT, UCHAR*,
bool);
void DSQL_set_cursor(Jrd::thread_db*, Jrd::dsql_req*, const TEXT*);
void DSQL_sql_info(Jrd::thread_db*, Jrd::dsql_req*,
USHORT, const UCHAR*, ULONG, UCHAR*);
ULONG DSQL_get_plan_info(Jrd::thread_db*,
const Jrd::dsql_req*,
SLONG, SCHAR**,
const bool realloc = true);
#endif // DSQL_DSQL_PROTO_H