Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Null Report Parameter Passed to Data Set
Null Report Parameter Passed to Data Set [message #256497] Fri, 28 September 2007 07:22 Go to next message
Eclipse UserFriend
Originally posted by: aituoklis.gmail.com

Hi,

I found example (Bugzilla ID 182197) which illustrates handling a null
report parameter before using it in a data set parameter.
As I understood this workaround is used, because data set parameter can't
be null.
But sometimes you want to write something like this:

select *
from orderdetails
where (? is NULL OR CLASSICMODELS.ORDERDETAILS.ORDERNUMBER =? )

So we having the same result as in example, but
without using Birt scripting posibilities.
And it's working! So were is the problem? Problem is that J2EE server
(in my case JBoss 4.2.0GA) throwing errors like this:

org.eclipse.birt.data.engine.odaconsumer.ParameterMetaData
getRuntimeParameterType
SEVERE: Cannot get parameter type.
org.eclipse.birt.report.data.oda.jdbc.JDBCException: Cannot get parameter
type.
SQL error #1: Unsupported feature
;
java.sql.SQLException: Unsupported feature
at
org.eclipse.birt.report.data.oda.jdbc.ParameterMetaData.getP arameterT
ype(ParameterMetaData.java:159)


So report is showing correct results, but J2EE server is throwing errors,
it's not critical, but not nice.

So my question is: is it planned to support null data set parameters in
BIRT? And if yes, so in which version?

Thank you in advance for answers.

Aivaras
Re: Null Report Parameter Passed to Data Set [message #256540 is a reply to message #256497] Fri, 28 September 2007 14:51 Go to previous message
Virgil Dodson is currently offline Virgil DodsonFriend
Messages: 40
Registered: July 2009
Member
Hi Aivaras,

It seems that NULL parameters might be handled differently in BIRT 2.2.1
based on this resolved bug...

https://bugs.eclipse.org/bugs/show_bug.cgi?id=203100



Virgil Dodson
http://www.birt-echange.com

Aivaras Marcinkevicius wrote:
> Hi,
>
> I found example (Bugzilla ID 182197) which illustrates handling a null
> report parameter before using it in a data set parameter. As I
> understood this workaround is used, because data set parameter can't be
> null. But sometimes you want to write something like this:
> select *
> from orderdetails
> where (? is NULL OR CLASSICMODELS.ORDERDETAILS.ORDERNUMBER =? )
>
> So we having the same result as in example, but
> without using Birt scripting posibilities. And it's working! So were is
> the problem? Problem is that J2EE server (in my case JBoss 4.2.0GA)
> throwing errors like this:
>
> org.eclipse.birt.data.engine.odaconsumer.ParameterMetaData
> getRuntimeParameterType
> SEVERE: Cannot get parameter type.
> org.eclipse.birt.report.data.oda.jdbc.JDBCException: Cannot get
> parameter type.
> SQL error #1: Unsupported feature
> ;
> java.sql.SQLException: Unsupported feature
> at
> org.eclipse.birt.report.data.oda.jdbc.ParameterMetaData.getP arameterT
> ype(ParameterMetaData.java:159)
>
>
> So report is showing correct results, but J2EE server is throwing
> errors, it's not critical, but not nice.
> So my question is: is it planned to support null data set parameters in
> BIRT? And if yes, so in which version?
> Thank you in advance for answers.
>
> Aivaras
>
>
Previous Topic:Query with argumentlist ; VALUE in ('A','B','C')
Next Topic:Websphere Memory utilization is HIGH (URGENT)
Goto Forum:
  


Current Time: Wed Sep 18 18:07:07 GMT 2024

Powered by FUDForum. Page generated in 0.03082 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top