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

Setting query as parameter problem!!!


p_a

Recommended Posts

Hello all,

 

I am working with iReport2.0.1 and wanna send query as a string to iReport.So I define a string parameter and set the query as its default value:

 

"select * from test" as a default value for $P{dbQuery},but the problem is the iReport database could not understand String parameter and give me an exception!!!!!

 

It says :

{You have an error in your sql syntax;check the manual that corespondens to your SQL server version for the right syntax to use near "select * from test" !!!}

 

Can anyone please tell me where did I wrong???????

 

Thank you,

Pegah

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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...