9.40uc3 NVL problem
Posted in 2004
Topics: General Discussion
Hi, everybody,
I've just encountered an interesting problem with 9.40uc3 (Linux)
This is a small regression code to reproduce the problem:
----------------------------
create table my_test ( id serial, num integer);
insert into my_test values(1,1);
insert into my_test values(2,2);
select NVL(
(select min(t1.id) from my_test t1 where num>4 ),
(select max(t2.id) from my_test t2)
)
from 'informix'.systables; -- <<<< this works fine
insert into my_test values(3000000,3);
select NVL(
(select min(t1.id) from my_test t1 where num>4 ),
(select max(t2.id) from my_test t2)
)
from 'informix'.systables; -- <<<< this gives an ERROR -1207
----------------------
-1207 Converted value does not fit into the allotted space.
Bug or feature?
It doesn't reproduce on 9.21uc4
------------------------------------------
Alexey Sonkin
'
sending to informix-list
same on 9.40.UC3 under Solaris 7
Alexey Sonkin wrote:
>
> Hi, everybody,
>
> I've just encountered an interesting problem with 9.40uc3 (Linux)
> This is a small regression code to reproduce the problem:
>
> ----------------------------
> create table my_test ( id serial, num integer);>
> insert into my_test values(1,1);
> insert into my_test values(2,2);>
> select NVL(
> (select min(t1.id) from my_test t1 where num>4 ),
> (select max(t2.id) from my_test t2)
> )
> from 'informix'.systables; -- <<<< this works fine
>
> insert into my_test values(3000000,3);>
> select NVL(
> (select min(t1.id) from my_test t1 where num>4 ),
> (select max(t2.id) from my_test t2)
> )
> from 'informix'.systables; -- <<<< this gives an ERROR -1207
>
> ----------------------
>
> -1207 Converted value does not fit into the allotted space.
>
> Bug or feature?
> It doesn't reproduce on 9.21uc4
>
> ------------------------------------------
> Alexey Sonkin
>
>
> sending to informix-list
--
Paul Watson #
Oninit Ltd # Growing old is mandatory
Tel: +44 1436 672201 # Growing up is optional
Fax: +44 1436 678693 #
Mob: +44 7818 003457 #
www.oninit.com #
I have the same problem with IDS 9.40.FC3 on Tru64 UNIX V5.1B
--
Ciao,
Marino Decaro
"Alexey Sonkin" <alexeis@grandvirtual.com> ha scritto nel messaggio
news:c7rc2a$pb3$1@terabinaries.xmission.com...
>
> Hi, everybody,
>
> I've just encountered an interesting problem with 9.40uc3 (Linux)
> This is a small regression code to reproduce the problem:
>
> ----------------------------
> create table my_test ( id serial, num integer);>
> insert into my_test values(1,1);
> insert into my_test values(2,2);>
> select NVL(
> (select min(t1.id) from my_test t1 where num>4 ),
> (select max(t2.id) from my_test t2)
> )
> from 'informix'.systables; -- <<<< this works fine
>
> insert into my_test values(3000000,3);>
> select NVL(
> (select min(t1.id) from my_test t1 where num>4 ),
> (select max(t2.id) from my_test t2)
> )
> from 'informix'.systables; -- <<<< this gives an ERROR -1207
>
> ----------------------
>
> -1207 Converted value does not fit into the allotted space.
>
> Bug or feature?
> It doesn't reproduce on 9.21uc4
>
> ------------------------------------------
> Alexey Sonkin
>
>
>
> sending to informix-list
This error appeared in 9.30
run
select
(
(select min(t1.id)::integer from my_test t1 where num>4 ),
(select max(t2.id)::integer from my_test t2)
)
from 'informix'.systables;
---------------------------
Igor Zaiets
ICQ: 255930914
"Alexey Sonkin" <alexeis@grandvirtual.com> wrote in message news:c7rc2a$pb3$1@terabinaries.xmission.com...
>
> Hi, everybody,
>
> I've just encountered an interesting problem with 9.40uc3 (Linux)
> This is a small regression code to reproduce the problem:
>
> ----------------------------
> create table my_test ( id serial, num integer);>
> insert into my_test values(1,1);
> insert into my_test values(2,2);>
> select NVL(
> (select min(t1.id) from my_test t1 where num>4 ),
> (select max(t2.id) from my_test t2)
> )
> from 'informix'.systables; -- <<<< this works fine
>
> insert into my_test values(3000000,3);>
> select NVL(
> (select min(t1.id) from my_test t1 where num>4 ),
> (select max(t2.id) from my_test t2)
> )
> from 'informix'.systables; -- <<<< this gives an ERROR -1207
>
> ----------------------
>
> -1207 Converted value does not fit into the allotted space.
>
> Bug or feature?
> It doesn't reproduce on 9.21uc4
>
> ------------------------------------------
> Alexey Sonkin
> '
>
>
> sending to informix-list