mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-27 20:03:03 +01:00
d4bf9ab246
- dsql_req becomes a running request; - CompiledStatement is derived from dsql_req. The compilation state previously in dsql_req comes to here; - Rename many "request" parameters to "statement" where type is changed from dsql_req to CompiledStatement. This changes makes easy the path to support compiled statement cache.
74 lines
1.9 KiB
C++
74 lines
1.9 KiB
C++
/*
|
|
* PROGRAM: Dynamic SQL runtime support
|
|
* MODULE: utld_proto.h
|
|
* DESCRIPTION: Prototype Header file for utld.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): ______________________________________.
|
|
*
|
|
* 2002-02-23 Sean Leyne - Code Cleanup, removed old Win3.1 port (Windows_Only)
|
|
*
|
|
*/
|
|
|
|
#ifndef DSQL_UTLD_PROTO_H
|
|
#define DSQL_UTLD_PROTO_H
|
|
|
|
#if !defined(SUPERCLIENT)
|
|
#include "../jrd/DataTypeUtil.h"
|
|
#endif
|
|
|
|
struct sqlda_sup;
|
|
|
|
USHORT UTLD_char_length_to_byte_length(USHORT lengthInChars, USHORT maxBytesPerChar);
|
|
ISC_STATUS UTLD_copy_status(const ISC_STATUS*, ISC_STATUS*);
|
|
ISC_STATUS UTLD_parse_sql_info(ISC_STATUS*, USHORT, const SCHAR*, XSQLDA*, USHORT*);
|
|
ISC_STATUS UTLD_parse_sqlda(ISC_STATUS*, sqlda_sup* const, USHORT*, USHORT*,
|
|
USHORT*, USHORT, XSQLDA*, const USHORT);
|
|
void UTLD_save_status_strings(ISC_STATUS*);
|
|
SCHAR* UTLD_skip_sql_info(SCHAR*);
|
|
|
|
|
|
#if !defined(SUPERCLIENT)
|
|
|
|
namespace Jrd {
|
|
|
|
class CompiledStatement;
|
|
|
|
class DSqlDataTypeUtil : public DataTypeUtilBase
|
|
{
|
|
public:
|
|
explicit DSqlDataTypeUtil(CompiledStatement* aStatement)
|
|
: statement(aStatement)
|
|
{
|
|
}
|
|
|
|
public:
|
|
virtual UCHAR maxBytesPerChar(UCHAR charSet);
|
|
virtual USHORT getDialect() const;
|
|
|
|
private:
|
|
CompiledStatement* statement;
|
|
};
|
|
|
|
} // namespace
|
|
|
|
#endif
|
|
|
|
|
|
#endif // DSQL_UTLD_PROTO_H
|
|
|