mirror of https://github.com/apache/openjpa.git
Shows the failed SQL Statement when things break rather than internal ExpContext object
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@603031 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
38f41d870e
commit
111098f1b3
|
@ -501,13 +501,14 @@ public class JDBCStoreQuery
|
||||||
try {
|
try {
|
||||||
stmnt = sql[i].prepareStatement(conn);
|
stmnt = sql[i].prepareStatement(conn);
|
||||||
count += stmnt.executeUpdate();
|
count += stmnt.executeUpdate();
|
||||||
|
} catch (SQLException se) {
|
||||||
|
throw SQLExceptions.getStore(se, sql[i].getSQL(),
|
||||||
|
_store.getDBDictionary());
|
||||||
} finally {
|
} finally {
|
||||||
if (stmnt != null)
|
if (stmnt != null)
|
||||||
try { stmnt.close(); } catch (SQLException se) {}
|
try { stmnt.close(); } catch (SQLException se) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (SQLException se) {
|
|
||||||
throw SQLExceptions.getStore(se, ctx, _store.getDBDictionary());
|
|
||||||
} finally {
|
} finally {
|
||||||
try { conn.close(); } catch (SQLException se) {}
|
try { conn.close(); } catch (SQLException se) {}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue