Skip to main content



      Home
Home » Archived » BIRT » Unable to pass parameters when using Postgresql functions
Unable to pass parameters when using Postgresql functions [message #506077] Tue, 05 January 2010 20:51 Go to next message
Eclipse UserFriend
I have a BIRT report that runs on Pstgresql 8.3 queries. When I pass parameters to regular queries and set the parameters using the dataset editor, then there is no issue.
For example, select * from table where column = ? works just fine.

However, when I try to call a Postgresql function in the query and pass parameters to this function, I get an error.

For example , if I have a Postgresql function called get_dates(year integer)
and I call it in a report by saying:

select * from get_date(?)

This throws an error.

Can someome please tell me how to call postgresql functions in queries inside a BIRT report?

Many thanks!
Re: Unable to pass parameters when using Postgresql functions [message #506244 is a reply to message #506077] Wed, 06 January 2010 11:34 Go to previous message
Eclipse UserFriend
Does it work if you just call
select get_date(?)
or hard code the parameter?

Jason


Smitha wrote:
> I have a BIRT report that runs on Pstgresql 8.3 queries. When I pass
> parameters to regular queries and set the parameters using the dataset
> editor, then there is no issue. For example, select * from table where
> column = ? works just fine.
>
> However, when I try to call a Postgresql function in the query and pass
> parameters to this function, I get an error.
>
> For example , if I have a Postgresql function called get_dates(year
> integer)
> and I call it in a report by saying:
>
> select * from get_date(?)
>
> This throws an error.
>
> Can someome please tell me how to call postgresql functions in queries
> inside a BIRT report?
>
> Many thanks!
Previous Topic:Resource path for javascript files in Birt 2.5.1
Next Topic:Wizard offerres me no service parameter from the WSDL
Goto Forum:
  


Current Time: Sat Jul 05 18:24:24 EDT 2025

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

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

Back to the top