Inspector ER-209 summary

Severity: 1
Version: 0
Description: SQL Resource Management - Create Statement Number doesn't fit to Close Statement : You have to close each created SQL Statement on method level. The inspector counts the number of create- and close statement calls, and report a violation if there are less close calls as create calls. This may be wrong diagnosis if you nest your create statements in if-then-else blocks. If you use a operation in the finally block for closing your SQL resource, please define the operation name in the inspector.xml. Hammurapi will search for this method call and check the parameter list. This rule is only applicable in a connection-pooled environment.

Violations
#FileLineColumn
1org/hammurapi/inspectors/metrics/HsqlTest.java225
2org/hammurapi/inspectors/metrics/SqlExtractorHyperSonicStanaloneServer.java1769
3org/hammurapi/inspectors/metrics/SqlExtractorHyperSonicStanaloneServer.java2419

Hammurapi 3 Copyright © 2004 Hammurapi Group. All Rights Reserved.