mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-02-02 10:00:38 +01:00
According to Adriano's suggestions
This commit is contained in:
parent
7f3bfe7cf1
commit
fe68255f62
@ -330,6 +330,7 @@ Firebird 4.0
|
|||||||
PRIVILEGE *
|
PRIVILEGE *
|
||||||
QUANTIZE *
|
QUANTIZE *
|
||||||
RANGE (1)
|
RANGE (1)
|
||||||
|
RESET *
|
||||||
SECURITY
|
SECURITY
|
||||||
SESSION
|
SESSION
|
||||||
SQL (1)
|
SQL (1)
|
||||||
|
@ -55,6 +55,12 @@ struct DecimalStatus
|
|||||||
: decExtFlag(exc), roundingMode(DEC_ROUND_HALF_UP)
|
: decExtFlag(exc), roundingMode(DEC_ROUND_HALF_UP)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
DecimalStatus()
|
||||||
|
: decExtFlag(FB_DEC_Errors), roundingMode(DEC_ROUND_HALF_UP)
|
||||||
|
{ }
|
||||||
|
|
||||||
|
static const DecimalStatus DEFAULT;
|
||||||
|
|
||||||
USHORT decExtFlag, roundingMode;
|
USHORT decExtFlag, roundingMode;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -64,15 +70,14 @@ struct DecimalBinding
|
|||||||
: bind(DEC_NATIVE), numScale(0)
|
: bind(DEC_NATIVE), numScale(0)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
static const DecimalBinding DEFAULT;
|
||||||
|
|
||||||
enum Bind { DEC_NATIVE, DEC_TEXT, DEC_DOUBLE, DEC_NUMERIC };
|
enum Bind { DEC_NATIVE, DEC_TEXT, DEC_DOUBLE, DEC_NUMERIC };
|
||||||
|
|
||||||
Bind bind;
|
Bind bind;
|
||||||
SCHAR numScale;
|
SCHAR numScale;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Default values for user sessions
|
|
||||||
const DecimalStatus DefaultDecimalStatus(FB_DEC_Errors);
|
|
||||||
const DecimalBinding DefaultDecimalBinding;
|
|
||||||
|
|
||||||
class DecimalFixed;
|
class DecimalFixed;
|
||||||
|
|
||||||
|
@ -204,8 +204,8 @@ Jrd::Attachment::Attachment(MemoryPool* pool, Database* dbb)
|
|||||||
att_functions(*pool),
|
att_functions(*pool),
|
||||||
att_internal(*pool),
|
att_internal(*pool),
|
||||||
att_dyn_req(*pool),
|
att_dyn_req(*pool),
|
||||||
att_dec_status(DefaultDecimalStatus),
|
att_dec_status(DecimalStatus::DEFAULT),
|
||||||
att_dec_binding(DefaultDecimalBinding),
|
att_dec_binding(DecimalBinding::DEFAULT),
|
||||||
att_charsets(*pool),
|
att_charsets(*pool),
|
||||||
att_charset_ids(*pool),
|
att_charset_ids(*pool),
|
||||||
att_pools(*pool),
|
att_pools(*pool),
|
||||||
@ -384,8 +384,8 @@ void Jrd::Attachment::releaseGTTs(thread_db* tdbb)
|
|||||||
void Jrd::Attachment::resetSession(thread_db* tdbb)
|
void Jrd::Attachment::resetSession(thread_db* tdbb)
|
||||||
{
|
{
|
||||||
// reset DecFloat
|
// reset DecFloat
|
||||||
att_dec_status = DefaultDecimalStatus;
|
att_dec_status = DecimalStatus::DEFAULT;
|
||||||
att_dec_binding = DefaultDecimalBinding;
|
att_dec_binding = DecimalBinding::DEFAULT;
|
||||||
|
|
||||||
// reset timeouts
|
// reset timeouts
|
||||||
setIdleTimeout(0);
|
setIdleTimeout(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user