roosit Posted April 18, 2015 Share Posted April 18, 2015 to query views depending on a set timezone, i need to be able to run something like this:BEGIN;SET LOCAL TimeZone='Pacific/Enderbury';SELECT NOW() AT TIME ZONE (SELECT current_setting('TIMEZONE')) ;COMMIT; The set local is setting the timezone only for this transaction. Anybody have a suggestion on how to implement this in a single report?Thanks in advancePS. just curious, why is valid sql not simply executed? Link to comment Share on other sites More sharing options...
roosit Posted April 19, 2015 Author Share Posted April 19, 2015 i have read comments about subdataset, tables and subreports, those are just complicating things Link to comment Share on other sites More sharing options...
roosit Posted April 19, 2015 Author Share Posted April 19, 2015 aalso solutions with creating stored procedures dont have my preference. Since you have to define return types, i can then start making a procedure for every report, that is not why i am using jasperserver Link to comment Share on other sites More sharing options...
roosit Posted April 19, 2015 Author Share Posted April 19, 2015 I have seen lots of posts of people requiring to run compound sql queries. Has some one already thought about creating a patch for the query executer / validator?net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createDatasource(JRJdbcQueryExecuter.java:137 Link to comment Share on other sites More sharing options...
roosit Posted April 20, 2015 Author Share Posted April 20, 2015 Is this going to solve the issue?modify fileapache-tomcatwebappsjasperserverWEB-INFclassesesapisecurity-config.properties:security.validation.sql.on=false Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now