Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow filtering of jdbc.sqlonly statements (i.e., "select 1") #53

Open
GoogleCodeExporter opened this issue Mar 25, 2015 · 2 comments
Open

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. use a connection pool and configure a validationQuery (e.g., "select 1")
2. turn on jdbc.sqlonly logging
3. start a webapp (or long lived application).  Upon use of the application (in 
our case, scheduled jobs every minute), I just get a fairly large overhead of 
duplicate (or at least useless) "select 1" output lines.

What is the expected output? What do you see instead?

I would like to see all sql statements but ignore "select 1"


What version of the product are you using? On what operating system?
1.2.   Linux OS.


Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 6 Aug 2012 at 8:28

@GoogleCodeExporter
Copy link
Author

I get the same problem

Original comment by [email protected] on 17 Apr 2014 at 5:03

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

This is not a bug. It's showing the actual SQL coming from the application.
I understand that it's just noise that you want to filter out.
Good idea. although I'm not sure of a simple way to implement it.

Original comment by [email protected] on 17 Apr 2014 at 10:27

  • Added labels: Priority-Low, Type-Enhancement
  • Removed labels: Priority-Medium, Type-Defect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant