Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Unable to pass parameters when using Postgresql functions
Unable to pass parameters when using Postgresql functions [message #506077] Wed, 06 January 2010 01:51 Go to next message
sram is currently offline sramFriend
Messages: 40
Registered: July 2009
Member
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 16:34 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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 Apr 27 00:06:32 GMT 2024

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

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

Back to the top