8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-02-02 10:40:38 +01:00

Fixed bug CORE-5695 : Position function does not consider the collation for blob

This commit is contained in:
hvlad 2018-01-09 17:50:00 +02:00
parent ee2319b79d
commit 6cab50156c
2 changed files with 9 additions and 1 deletions

View File

@ -259,6 +259,14 @@ typedef struct dsc
memset(this, 0, sizeof(*this));
}
void clearFlags()
{
if (isBlob() && dsc_sub_type == isc_blob_text)
dsc_flags &= 0xFF00;
else
dsc_flags = 0;
}
void makeBlob(SSHORT subType, USHORT ttype, ISC_QUAD* address = NULL)
{
clear();

View File

@ -2136,7 +2136,7 @@ const StmtNode* DeclareVariableNode::execute(thread_db* tdbb, jrd_req* request,
{
impure_value* variable = request->getImpure<impure_value>(impureOffset);
variable->vlu_desc = varDesc;
variable->vlu_desc.dsc_flags = 0;
variable->vlu_desc.clearFlags();
if (variable->vlu_desc.dsc_dtype <= dtype_varying)
{