Reputation: 1186
I have a web application backed by hibernate. For last few days, I have started closely monitoring mysql and found that hibernate is sending unknown queries to the database which infact are not being sent from any part of app.
query looks like
| /* mysql-connector-java-5.1.6 ( Revision: ${svn.Revision} ) */SHOW VARIABLES WHERE Variable_name ='l |
Upvotes: 0
Views: 430
Reputation: 14061
This is not related to Hibernate or to the pooling mechanism. This is performed by the driver itself once a connection is made. The driver does that to configure itself. See the code in com.mysql.jdbc.ConnectionImpl.loadServerVariables()
Upvotes: 1