Archive for the tag "try-with-resources"
try-with-resources and jdbc without sql injection
September 3rd, 2012 by Jeanne BoyarskyAs I was on Oracle’s JDBC tutorial page, I noticed it was using a Statement rather than a PreparedStatement. I grumbled to myself about how this is teaching people to develop using SQL Injection and decided to Google for an example so I could tweet about it. I was looking for an example of using […]
Posted: 3 September, 2012 in Java/Java EE, JDBC.
Tags: automatic-resource-mangement, java7, JDBC, preparedstatement, sql-injection, try-with-resources
Comments: 2