
|
If you were logged in you would be able to see more operations.
|
|
|
|
File Attachments:
|
|
|
Environment:
|
derby v10.1.3.1 and v10.2.1.6 on linux (FC5), jdk 1.5.0_06-b05
and jdk 1.6.0-rc-b99.
derby v10.1.3.1 and v10.2.1.6 on linux (FC5), jdk 1.5.0_06-b05
and jdk 1.6.0-rc-b99.
|
|
Issue Links:
|
Reference
|
|
|
|
This issue is related to:
|
|
|
|
|
|
|
|
| Bug behavior facts: |
Regression
|
| Resolution Date: |
18/Oct/06 02:21 PM
|
|
The following simple test case gives an error:
create table a (f1 varchar(10));
create table b (f2 varchar(10));
insert into b values('test');
select nullif('x','x') as f0, f1 from a
union all
select nullif('x','x') as f0, nullif('x','x') as f1 from b;
ERROR 23502: Column 'F0' cannot accept a NULL value.
SQLState(23502) vendor code(30000)
However the following works ok:
drop table a;
drop table b;
create table a (f1 int);
create table b (f2 int);
insert into b values(1);
select nullif('x','x') as f0, f1 from a
union all
select nullif('x','x') as f0, nullif(1,1) as f1 from b;
The test case is a simplification of a query generated by Hibernate
with the table per class inheritance strategy. Both queries work ok on
MSSQL and PostgreSQL. On Derby only the second query works, the first
one giving a contraint violation.
|
|
Description
|
The following simple test case gives an error:
create table a (f1 varchar(10));
create table b (f2 varchar(10));
insert into b values('test');
select nullif('x','x') as f0, f1 from a
union all
select nullif('x','x') as f0, nullif('x','x') as f1 from b;
ERROR 23502: Column 'F0' cannot accept a NULL value.
SQLState(23502) vendor code(30000)
However the following works ok:
drop table a;
drop table b;
create table a (f1 int);
create table b (f2 int);
insert into b values(1);
select nullif('x','x') as f0, f1 from a
union all
select nullif('x','x') as f0, nullif(1,1) as f1 from b;
The test case is a simplification of a query generated by Hibernate
with the table per class inheritance strategy. Both queries work ok on
MSSQL and PostgreSQL. On Derby only the second query works, the first
one giving a contraint violation.
|
Show » |
made changes - 17/Oct/06 03:20 PM
| Field |
Original Value |
New Value |
|
Assignee
|
|
Yip Ng
[ yipng
]
|
made changes - 17/Oct/06 03:20 PM
|
Status
|
Open
[ 1
]
|
In Progress
[ 3
]
|
made changes - 17/Oct/06 04:24 PM
made changes - 17/Oct/06 04:24 PM
|
Derby Info
|
|
[Patch Available]
|
made changes - 17/Oct/06 05:44 PM
|
Link
|
|
This issue is related to DERBY-7
[ DERBY-7
]
|
made changes - 17/Oct/06 07:29 PM
|
Derby Info
|
[Patch Available]
|
[Patch Available, Regression]
|
made changes - 18/Oct/06 01:45 AM
|
Derby Info
|
[Patch Available, Regression]
|
[Regression]
|
|
Fix Version/s
|
|
10.3.0.0
[ 12310800
]
|
made changes - 18/Oct/06 07:32 AM
made changes - 18/Oct/06 07:32 AM
|
Derby Info
|
[Regression]
|
[Patch Available, Regression]
|
made changes - 18/Oct/06 02:21 PM
|
Derby Info
|
[Patch Available, Regression]
|
[Regression]
|
|
Status
|
In Progress
[ 3
]
|
Resolved
[ 5
]
|
|
Fix Version/s
|
|
10.2.1.8
[ 12312096
]
|
|
Resolution
|
|
Fixed
[ 1
]
|
made changes - 13/Dec/07 09:05 AM
|
Status
|
Resolved
[ 5
]
|
Closed
[ 6
]
|
made changes - 30/Jun/09 03:55 PM
|
Bug behavior facts
|
|
[Regression]
|
|