mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 22:03:04 +01:00
Fixed CORE-2785 - Transliteration error with COMMENT statement
This commit is contained in:
parent
b333a9ca58
commit
667b32ea6a
@ -793,6 +793,7 @@ ISC_STATUS filter_transliterate_text(USHORT action, BlobControl* control)
|
|||||||
{
|
{
|
||||||
USHORT len = control->ctl_buffer_length;
|
USHORT len = control->ctl_buffer_length;
|
||||||
Firebird::HalfStaticArray<BYTE, BUFFER_MEDIUM> buffer;
|
Firebird::HalfStaticArray<BYTE, BUFFER_MEDIUM> buffer;
|
||||||
|
bool first = true;
|
||||||
BYTE* p;
|
BYTE* p;
|
||||||
|
|
||||||
while (len || aux->ctlaux_buffer1_unused)
|
while (len || aux->ctlaux_buffer1_unused)
|
||||||
@ -838,7 +839,16 @@ ISC_STATUS filter_transliterate_text(USHORT action, BlobControl* control)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (len > 0 && err_position == 0)
|
if (len > 0 && err_position == 0)
|
||||||
|
{
|
||||||
|
if (first)
|
||||||
return isc_transliteration_failed;
|
return isc_transliteration_failed;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// That bytes should be written in the next put or rejected in
|
||||||
|
// close - CORE-2785.
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* hand the text off to the next stage of the filter */
|
/* hand the text off to the next stage of the filter */
|
||||||
|
|
||||||
@ -862,6 +872,7 @@ ISC_STATUS filter_transliterate_text(USHORT action, BlobControl* control)
|
|||||||
control->ctl_number_segments++;
|
control->ctl_number_segments++;
|
||||||
|
|
||||||
len = 0;
|
len = 0;
|
||||||
|
first = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return FB_SUCCESS;
|
return FB_SUCCESS;
|
||||||
|
Loading…
Reference in New Issue
Block a user