Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
To reproduce:
create table person ( id bigint not null primary key, firstname char(10), lastname varchar(10) );
upsert into person values( 1, 'john', 'doe');
upsert into person values( 2, 'jane', 'doe');
– fixed value for char(10)
select id, 'foo' firstname, lastname from person union all select * from person;
java.lang.RuntimeException: java.sql.SQLException: ERROR 201 (22000): Illegal data. Expected length of at least 106 bytes, but had 13
– fixed value for bigint
select cast( 10 AS bigint) id, 'foo' firstname, lastname from person union all select * from person;
java.lang.RuntimeException: java.sql.SQLException: ERROR 201 (22000): Illegal data. Expected length of at least 106 bytes, but had 13