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 23:08:37 +01:00
|
|
|
*
|
|
|
|
* 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)
|
2006-08-12 05:17:01 +02:00
|
|
|
#include "../jrd/DataTypeUtil.h"
|
|
|
|
#endif
|
|
|
|
|
2005-06-10 04:03:08 +02:00
|
|
|
struct sqlda_sup;
|
|
|
|
|
|
|
|
USHORT UTLD_char_length_to_byte_length(USHORT lengthInChars, USHORT maxBytesPerChar);
|
2005-09-04 23:31:25 +02:00
|
|
|
ISC_STATUS UTLD_copy_status(const ISC_STATUS*, ISC_STATUS*);
|
2004-11-08 04:14:17 +01:00
|
|
|
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
|
|
|
|
2006-08-12 05:17:01 +02:00
|
|
|
|
2008-01-16 07:52:43 +01:00
|
|
|
#if !defined(SUPERCLIENT)
|
2006-08-12 05:17:01 +02:00
|
|
|
|
2008-02-28 14:48:16 +01:00
|
|
|
namespace Jrd {
|
2006-08-12 05:17:01 +02:00
|
|
|
|
2008-02-28 14:48:16 +01:00
|
|
|
class dsql_req;
|
|
|
|
|
|
|
|
class DSqlDataTypeUtil : public DataTypeUtilBase
|
2006-08-12 05:17:01 +02:00
|
|
|
{
|
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;
|
2006-08-12 05:17:01 +02:00
|
|
|
|
2008-02-28 14:48:16 +01:00
|
|
|
private:
|
|
|
|
dsql_req* request;
|
|
|
|
};
|
2006-08-12 05:17:01 +02:00
|
|
|
|
2008-02-29 09:45:02 +01:00
|
|
|
} // namespace
|
2006-08-12 05:17:01 +02:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2003-10-01 20:11:23 +02:00
|
|
|
#endif // DSQL_UTLD_PROTO_H
|
2003-10-05 08:23:04 +02:00
|
|
|
|