Index: src/org/springframework/orm/hibernate3/SessionFactoryUtils.java
===================================================================
--- src/org/springframework/orm/hibernate3/SessionFactoryUtils.java	(révision 17140)
+++ src/org/springframework/orm/hibernate3/SessionFactoryUtils.java	(copie de travail)
@@ -627,7 +627,10 @@
 			return new DataAccessResourceFailureException(ex.getMessage(), ex);
 		}
 		if (ex instanceof SQLGrammarException) {
-			return new InvalidDataAccessResourceUsageException(ex.getMessage(), ex);
+			// Wrap SQLGrammarException into a HibernateJdbcException in order to
+			// keep the SQL statement for further investigation
+			return new InvalidDataAccessResourceUsageException(ex.getMessage(),
+			    new HibernateJdbcException((SQLGrammarException) ex));
 		}
 		if (ex instanceof LockAcquisitionException) {
 			return new CannotAcquireLockException(ex.getMessage(), ex);
