mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 10:03:03 +01:00
Allowed NONE->charset conversions if called during a comparison.
This commit is contained in:
parent
35b8322d94
commit
51b8739acc
@ -926,15 +926,16 @@ ULONG INTL_convert_bytes(thread_db* tdbb,
|
||||
|
||||
SET_TDBB(tdbb);
|
||||
|
||||
|
||||
fb_assert(src_ptr != NULL);
|
||||
fb_assert(src_type != dest_type);
|
||||
fb_assert(err != NULL);
|
||||
|
||||
const UCHAR* const start_dest_ptr = dest_ptr;
|
||||
|
||||
if ((dest_type == CS_BINARY) || (dest_type == CS_NONE)) {
|
||||
|
||||
if ((dest_type == CS_BINARY) ||
|
||||
(dest_type == CS_NONE) ||
|
||||
(src_type == CS_NONE))
|
||||
{
|
||||
/* See if we just need a length estimate */
|
||||
if (dest_ptr == NULL)
|
||||
return (src_len);
|
||||
|
Loading…
Reference in New Issue
Block a user