Jump to content
We've recently updated our Privacy Statement, available here ×

How to pass array kind of structure (from report query) to SQL function?


jigar.patel

Recommended Posts

Hi,

 

I want to pass array kind of structure (from report query) to my PostgreSQL function which accepts text[] as input.

I tried String[] and ArrayList, but it gives compile time error saying "Parameter type not supported in query".

Then I tried passing it as a string ($P!{array_parameter}) but it gives error while deploying report to jasperserver saying: "The selected JRXML could not be parsed. You might have selected the wrong file."

Any Suggestions...!

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Thanks to ernst_2 for answering. But, That's not what I want. I want to pass my array to SQL function as an arguement, from report query. As for example,

SELECT * FROM my_function($P{my_array_parameter})

which will pass entire array in my PostgreSQL function and I will receive it in my function as I have set datatype text[] as arguement datatype in PostgreSQL function. Any Ideas...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...