How to log query String of a SQL statement if it fails to commit? : <p>Sometimes for any reason statement fails to commit to DB correctly. For example if the connection is closed statement.execute() fails.
Does anyone know how to log the statement, in order to identify and log which query string failed to commit successfully?</p>
