mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 22:43:04 +01:00
Simplification.
This commit is contained in:
parent
8b2ef62c15
commit
da4312865c
@ -7608,7 +7608,6 @@ void update_global_field(BurpGlobals* tdgbl)
|
|||||||
* The blobs have been created already.
|
* The blobs have been created already.
|
||||||
*
|
*
|
||||||
**************************************/
|
**************************************/
|
||||||
USHORT length;
|
|
||||||
isc_req_handle req_handle1 = 0;
|
isc_req_handle req_handle1 = 0;
|
||||||
|
|
||||||
for (gfld* gfield = tdgbl->gbl_global_fields; gfield; )
|
for (gfld* gfield = tdgbl->gbl_global_fields; gfield; )
|
||||||
@ -7620,34 +7619,19 @@ void update_global_field(BurpGlobals* tdgbl)
|
|||||||
if (gfield->gfld_flags & GFLD_validation_blr)
|
if (gfield->gfld_flags & GFLD_validation_blr)
|
||||||
{
|
{
|
||||||
X.RDB$VALIDATION_BLR.NULL = FALSE;
|
X.RDB$VALIDATION_BLR.NULL = FALSE;
|
||||||
|
memcpy(&X.RDB$VALIDATION_BLR, &gfield->gfld_vb, sizeof(ISC_QUAD));
|
||||||
length = sizeof(ISC_QUAD);
|
|
||||||
UCHAR* p = (UCHAR *)&X.RDB$VALIDATION_BLR;
|
|
||||||
const UCHAR* q = (UCHAR *)&gfield->gfld_vb;
|
|
||||||
|
|
||||||
do { *p++ = *q++; } while (--length);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gfield->gfld_flags & GFLD_validation_source)
|
if (gfield->gfld_flags & GFLD_validation_source)
|
||||||
{
|
{
|
||||||
X.RDB$VALIDATION_SOURCE.NULL = FALSE;
|
X.RDB$VALIDATION_SOURCE.NULL = FALSE;
|
||||||
|
memcpy(&X.RDB$VALIDATION_SOURCE, &gfield->gfld_vs, sizeof(ISC_QUAD));
|
||||||
length = sizeof(ISC_QUAD);
|
|
||||||
UCHAR* p = (UCHAR *)&X.RDB$VALIDATION_SOURCE;
|
|
||||||
const UCHAR* q = (UCHAR *)&gfield->gfld_vs;
|
|
||||||
|
|
||||||
do { *p++ = *q++; } while (--length);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gfield->gfld_flags & GFLD_validation_source2)
|
if (gfield->gfld_flags & GFLD_validation_source2)
|
||||||
{
|
{
|
||||||
X.RDB$VALIDATION_SOURCE.NULL = FALSE;
|
X.RDB$VALIDATION_SOURCE.NULL = FALSE;
|
||||||
|
memcpy(&X.RDB$VALIDATION_SOURCE, &gfield->gfld_vs2, sizeof(ISC_QUAD));
|
||||||
length = sizeof(ISC_QUAD);
|
|
||||||
UCHAR* p = (UCHAR *)&X.RDB$VALIDATION_SOURCE;
|
|
||||||
const UCHAR* q = (UCHAR *)&gfield->gfld_vs2;
|
|
||||||
|
|
||||||
do { *p++ = *q++; } while (--length);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
END_MODIFY;
|
END_MODIFY;
|
||||||
|
Loading…
Reference in New Issue
Block a user