Subject | Re: [Firebird-Architect] Conversion of OCTETS string |
---|---|
Author | Dimitry Sibiryakov |
Post date | 2010-06-11T11:43:23Z |
11.06.2010 13:36, Adriano dos Santos Fernandes wrote:
INSERT INTO log_table (Key_value) VALUES (NEW.id);
If Key_value field has character set different from OCTETS while id
has OCTETS, this construction may work or fail depending on value of id.
I.e. it behaves unpredictable.
i.e random errors?..
assigned value. My crystal ball is not good enough for such things.
--
SY, SD.
> On 11/06/2010 08:30, Dimitry Sibiryakov wrote:If I write logging trigger, I write something like that:
>> Currently data in character set OCTETS are assigned to
>> variables/fields as-is, which in combination with check for malformed
>> string makes such assignments unpredictable and thus useless.
>>
> Justify, please. It seems the only problem is that it doesn't work the
> way you want.
INSERT INTO log_table (Key_value) VALUES (NEW.id);
If Key_value field has character set different from OCTETS while id
has OCTETS, this construction may work or fail depending on value of id.
I.e. it behaves unpredictable.
>> I suggest to follow Oracle in this regard and convert binary data toDo you know any application that expects behavior described above,
>> hexadecimal string.
>>
> And break any application that expect things as working now. Why?
i.e random errors?..
> It just works different. There is no problem with current functionality.It is predictable if you can predict target character set and exact
> It's not unpredictable in any way!
assigned value. My crystal ball is not good enough for such things.
--
SY, SD.