mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 19:23:03 +01:00
Comments.
This commit is contained in:
parent
8ebc6f3c3e
commit
c1d4a1cc8e
@ -85,7 +85,7 @@
|
|||||||
#include "../jrd/DataTypeUtil.h"
|
#include "../jrd/DataTypeUtil.h"
|
||||||
#include "../jrd/SysFunction.h"
|
#include "../jrd/SysFunction.h"
|
||||||
|
|
||||||
/* Pick up relation ids */
|
// Pick up relation ids
|
||||||
#include "../jrd/ini.h"
|
#include "../jrd/ini.h"
|
||||||
|
|
||||||
#include "../common/classes/auto.h"
|
#include "../common/classes/auto.h"
|
||||||
@ -96,31 +96,27 @@
|
|||||||
using Firebird::AutoSetRestore;
|
using Firebird::AutoSetRestore;
|
||||||
|
|
||||||
|
|
||||||
/* Firebird provides transparent conversion from string to date in
|
// Firebird provides transparent conversion from string to date in
|
||||||
* contexts where it makes sense. This macro checks a descriptor to
|
// contexts where it makes sense. This macro checks a descriptor to
|
||||||
* see if it is something that *could* represent a date value
|
// see if it is something that *could* represent a date value
|
||||||
*/
|
|
||||||
inline bool COULD_BE_DATE(const dsc desc)
|
inline bool COULD_BE_DATE(const dsc desc)
|
||||||
{
|
{
|
||||||
return ((DTYPE_IS_DATE(desc.dsc_dtype)) || (desc.dsc_dtype <= dtype_any_text));
|
return ((DTYPE_IS_DATE(desc.dsc_dtype)) || (desc.dsc_dtype <= dtype_any_text));
|
||||||
}
|
}
|
||||||
//#define COULD_BE_DATE(d) ((DTYPE_IS_DATE((d).dsc_dtype)) || ((d).dsc_dtype <= dtype_any_text))
|
|
||||||
|
|
||||||
/* One of d1,d2 is time, the other is date */
|
// One of d1,d2 is time, the other is date
|
||||||
inline bool IS_DATE_AND_TIME(const dsc d1, const dsc d2)
|
inline bool IS_DATE_AND_TIME(const dsc d1, const dsc d2)
|
||||||
{
|
{
|
||||||
return (((d1.dsc_dtype == dtype_sql_time) && (d2.dsc_dtype == dtype_sql_date)) ||
|
return (((d1.dsc_dtype == dtype_sql_time) && (d2.dsc_dtype == dtype_sql_date)) ||
|
||||||
((d2.dsc_dtype == dtype_sql_time) && (d1.dsc_dtype == dtype_sql_date)));
|
((d2.dsc_dtype == dtype_sql_time) && (d1.dsc_dtype == dtype_sql_date)));
|
||||||
}
|
}
|
||||||
//#define IS_DATE_AND_TIME(d1, d2)
|
|
||||||
// ((((d1).dsc_dtype==dtype_sql_time)&&((d2).dsc_dtype==dtype_sql_date)) ||
|
|
||||||
// (((d2).dsc_dtype==dtype_sql_time)&&((d1).dsc_dtype==dtype_sql_date)))
|
|
||||||
|
|
||||||
// size of req_rpb[0]
|
// size of req_rpb[0]
|
||||||
const size_t REQ_TAIL = sizeof(Jrd::jrd_req::blk_repeat_type);
|
const size_t REQ_TAIL = sizeof(Jrd::jrd_req::blk_repeat_type);
|
||||||
const int MAP_LENGTH = 256;
|
const int MAP_LENGTH = 256;
|
||||||
|
|
||||||
/* RITTER - changed HP10 to HPUX */
|
// RITTER - changed HP10 to HPUX
|
||||||
#if defined (HPUX) && defined (SUPERSERVER)
|
#if defined (HPUX) && defined (SUPERSERVER)
|
||||||
const int MAX_RECURSION = 96;
|
const int MAX_RECURSION = 96;
|
||||||
#else
|
#else
|
||||||
@ -2402,7 +2398,7 @@ void CMP_post_resource( ResourceList* rsc_ptr, void* obj, Resource::rsc_s type,
|
|||||||
resource.rsc_coll = (Collation*) obj;
|
resource.rsc_coll = (Collation*) obj;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
BUGCHECK(220); /* msg 220 unknown resource */
|
BUGCHECK(220); // msg 220 unknown resource
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user