Invalid 39004 message when function has primitive type parameter but null is
passed into String type parameter
--------------------------------------------------------------------------------------------------------------
Key: DERBY-1950
URL: http://issues.apache.org/jira/browse/DERBY-1950
Project: Derby
Issue Type: Bug
Affects Versions: 10.1.3.1
Environment: N/A
Reporter: Oleksandr Alesinskyy
Priority: Minor
create function countDelimitersBefore(
str varchar(512),
delimiter char(1),
pos integer)
returns integer
language java parameter style java
external name 'de.ntec.common.util.DBStringUtils.countDelimitersBefore';
select countDelimitersBefore(someColumn,'/',1) from someTable;
where value of SomeColumn is NULL inappropriatly results in
SQL State = 39004 SQL Code = -1 SQL Message = A NULL value cannot be passed to
a method which takes a parameter of primitive type 'int'. Exception message =
org.apache.derby.client.am.SqlException: A NULL value cannot be passed to a
method which takes a parameter of primitive type 'int'.
As far as I can see in 10.2.1.6 this bug is fixed.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira