19.07.2024 19:34, 'Dimitry Sibiryakov' via firebird-support wrote:
>
> But if I create a view as "create view d_v as select 1 one from
> rdb$database join rdb$relations on 1=1" things become surprising:
>
> SQL> select 1 from d_v for update;
>
> CONSTANT
> ============
> Statement failed, SQLSTATE = 22001
> arithmetic exception, numeric overflow, or string truncation
> -string right truncation
> -expected length 8, actual 16
>
> Is it expected behaviour or a bug?
I'd expect a different (more explicit) error to be raised instead.
Dmitry