/* * PROGRAM: JRD access method * MODULE: dsc.h * DESCRIPTION: Definitions associated with descriptors * * 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.04.16 Paul Beach - HP10 Define changed from -4 to (-4) to make it * compatible with the HP Compiler */ #ifndef JRD_DSC_PUB_H #define JRD_DSC_PUB_H /* * The following flags are used in an internal structure dsc (dsc.h) or in the external one paramdsc (ibase.h) */ /* values for dsc_flags * Note: DSC_null is only reliably set for local variables (blr_variable) */ #define DSC_null 1 #define DSC_no_subtype 2 /* dsc has no sub type specified */ #define DSC_nullable 4 /* not stored. instead, is derived from metadata primarily to flag SQLDA (in DSQL) */ /* Overload text typing information into the dsc_sub_type field. * See intl.h for definitions of text types * Moved to dsc.h only for C++ as an inline function. * #ifndef dsc_ttype * #define dsc_ttype dsc_sub_type * #endif * Data types * * WARNING: if you add another manifest constant to this group, then you * must add another entry to the array compare_priority in jrd/cvt2.cpp. * * * Note that dtype_null actually means that we do not yet know the * dtype for this descriptor. A nice cleanup item would be to globally * change it to dtype_unknown. --chrisj 1999-02-17 * Name changed on 2003.12.17 by CVC. */ #define dtype_unknown 0 #define dtype_text 1 #define dtype_cstring 2 #define dtype_varying 3 #define dtype_packed 6 #define dtype_byte 7 #define dtype_short 8 #define dtype_long 9 #define dtype_quad 10 #define dtype_real 11 #define dtype_double 12 #define dtype_d_float 13 #define dtype_sql_date 14 #define dtype_sql_time 15 #define dtype_timestamp 16 #define dtype_blob 17 #define dtype_array 18 #define dtype_int64 19 #define DTYPE_TYPE_MAX 20 #define ISC_TIME_SECONDS_PRECISION 10000L #define ISC_TIME_SECONDS_PRECISION_SCALE (-4) #endif /* JRD_DSC_PUB_H */