8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-28 02:43:03 +01:00
firebird-mirror/src/dsql/utld_proto.h

74 lines
1.9 KiB
C
Raw Normal View History

2001-05-23 15:26:42 +02:00
/*
* PROGRAM: Dynamic SQL runtime support
* MODULE: utld_proto.h
2003-10-05 08:23:04 +02:00
* DESCRIPTION: Prototype Header file for utld.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): ______________________________________.
*
* 2002-02-23 Sean Leyne - Code Cleanup, removed old Win3.1 port (Windows_Only)
*
2001-05-23 15:26:42 +02:00
*/
2003-10-01 20:11:23 +02:00
#ifndef DSQL_UTLD_PROTO_H
#define DSQL_UTLD_PROTO_H
2001-05-23 15:26:42 +02:00
2008-01-16 07:52:43 +01:00
#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*);
2004-02-02 12:02:12 +01:00
ISC_STATUS UTLD_parse_sqlda(ISC_STATUS*, sqlda_sup* const, USHORT*, USHORT*,
USHORT*, USHORT, XSQLDA*, const USHORT);
2003-10-05 08:23:04 +02:00
void UTLD_save_status_strings(ISC_STATUS*);
2006-05-02 02:15:29 +02:00
SCHAR* UTLD_skip_sql_info(SCHAR*);
2001-05-23 15:26:42 +02:00
2008-01-16 07:52:43 +01:00
#if !defined(SUPERCLIENT)
2008-02-28 14:48:16 +01:00
namespace Jrd {
2008-02-28 14:48:16 +01:00
class dsql_req;
class DSqlDataTypeUtil : public DataTypeUtilBase
{
2008-02-28 14:48:16 +01:00
public:
2008-03-02 09:44:10 +01:00
explicit DSqlDataTypeUtil(dsql_req* req)
2008-02-28 14:48:16 +01:00
: request(req)
{
}
public:
virtual UCHAR maxBytesPerChar(UCHAR charSet);
virtual USHORT getDialect() const;
2008-02-28 14:48:16 +01:00
private:
dsql_req* request;
};
2008-02-29 09:45:02 +01:00
} // namespace
#endif
2003-10-01 20:11:23 +02:00
#endif // DSQL_UTLD_PROTO_H
2003-10-05 08:23:04 +02:00