2001-05-23 15:26:42 +02:00
|
|
|
/*
|
|
|
|
* PROGRAM: Dynamic SQL runtime support
|
|
|
|
* MODULE: ddl_proto.h
|
2003-09-29 14:43:14 +02:00
|
|
|
* DESCRIPTION: Prototype Header file for ddl.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): ______________________________________.
|
2004-01-16 11:43:21 +01:00
|
|
|
*
|
2008-12-05 01:56:15 +01:00
|
|
|
* 2004.01.16 Vlad Horsun: added support for default parameters and
|
2004-01-16 11:43:21 +01:00
|
|
|
* EXECUTE BLOCK statement
|
2001-05-23 15:26:42 +02:00
|
|
|
*/
|
|
|
|
|
2003-09-26 12:50:59 +02:00
|
|
|
#ifndef DSQL_DDL_PROTO_H
|
|
|
|
#define DSQL_DDL_PROTO_H
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2003-02-12 20:28:13 +01:00
|
|
|
// This is a DSQL internal file. Not to be used by anything but
|
|
|
|
// the DSQL module itself.
|
|
|
|
|
2008-02-28 14:48:16 +01:00
|
|
|
namespace Jrd {
|
2009-12-20 22:01:10 +01:00
|
|
|
class DsqlCompilerScratch;
|
2008-02-28 14:48:16 +01:00
|
|
|
class dsql_fld;
|
|
|
|
};
|
2003-02-12 20:28:13 +01:00
|
|
|
|
2009-10-21 02:42:38 +02:00
|
|
|
const USHORT blr_dtypes[] = {
|
|
|
|
0,
|
|
|
|
blr_text, // dtype_text
|
|
|
|
blr_cstring, // dtype_cstring
|
|
|
|
blr_varying, // dtype_varying
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0, // dtype_packed
|
|
|
|
0, // dtype_byte
|
|
|
|
blr_short, // dtype_short
|
|
|
|
blr_long, // dtype_long
|
|
|
|
blr_quad, // dtype_quad
|
|
|
|
blr_float, // dtype_real
|
|
|
|
blr_double, // dtype_double
|
|
|
|
blr_double, // dtype_d_float
|
|
|
|
blr_sql_date, // dtype_sql_date
|
|
|
|
blr_sql_time, // dtype_sql_time
|
|
|
|
blr_timestamp, // dtype_timestamp
|
2009-10-30 11:43:42 +01:00
|
|
|
blr_blob, // dtype_blob // ASF: CAST use blr_blob2 because blr_blob doesn't fit in UCHAR
|
2009-10-21 02:42:38 +02:00
|
|
|
blr_short, // dtype_array
|
2010-12-18 03:17:06 +01:00
|
|
|
blr_int64, // dtype_int64
|
|
|
|
0, // DB_KEY
|
|
|
|
blr_bool // dtype_boolean
|
2009-10-21 02:42:38 +02:00
|
|
|
};
|
|
|
|
|
2009-12-20 22:01:10 +01:00
|
|
|
bool DDL_ids(const Jrd::DsqlCompilerScratch*);
|
2012-09-18 18:01:58 +02:00
|
|
|
void DDL_resolve_intl_type(Jrd::DsqlCompilerScratch*, Jrd::dsql_fld*, const Firebird::MetaName&,
|
|
|
|
bool = false);
|
2009-10-21 02:42:38 +02:00
|
|
|
|
2003-09-26 12:50:59 +02:00
|
|
|
#endif // DSQL_DDL_PROTO_H
|