mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 14:03:07 +01:00
Fixed CORE-5166 - Wrong error message with UNIQUE BOOLEAN field.
This commit is contained in:
parent
d43debb1e1
commit
3dc7f7998b
@ -5990,7 +5990,11 @@ string print_key(thread_db* tdbb, jrd_rel* relation, index_desc* idx, Record* re
|
||||
|
||||
fb_assert(!desc->isBlob());
|
||||
|
||||
value = MOV_make_string2(tdbb, desc, ttype_dynamic);
|
||||
if (desc->dsc_dtype == dtype_boolean)
|
||||
value = MOV_get_boolean(desc) ? "TRUE" : "FALSE";
|
||||
else
|
||||
value = MOV_make_string2(tdbb, desc, ttype_dynamic);
|
||||
|
||||
const int len = (int) value.length();
|
||||
const char* const str = value.c_str();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user