8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 04:43:03 +01:00

Fixed bug CORE-6447 : SET SQLDA_DISPLAY ON: different text of message for parameterized expression starting from second run

This commit is contained in:
hvlad 2020-11-17 10:15:54 +02:00
parent e3eaeed238
commit b1c2329ae1

View File

@ -45,6 +45,7 @@ public:
};
MetadataFromBlr::MetadataFromBlr(unsigned aBlrLength, const unsigned char* aBlr, unsigned aLength)
: MsgMetadata()
{
if (aBlrLength == 0)
return;
@ -248,7 +249,7 @@ InternalMessageBuffer::InternalMessageBuffer(unsigned aBlrLength, const unsigned
{
buffer = aBuffer;
if (aBlr)
if (aBlr && aBlrLength)
{
metadata = FB_NEW MetadataFromBlr(aBlrLength, aBlr, aBufferLength);
metadata->addRef();