diff --git a/base/src/org/compiere/model/MLanguage.java b/base/src/org/compiere/model/MLanguage.java index 1caa73716c..e0145e2d50 100644 --- a/base/src/org/compiere/model/MLanguage.java +++ b/base/src/org/compiere/model/MLanguage.java @@ -345,7 +345,7 @@ public class MLanguage extends X_AD_Language } catch (SQLException e) { - throw new DBException(e); + throw new DBException(e, sql); } finally { @@ -397,7 +397,7 @@ public class MLanguage extends X_AD_Language } catch (SQLException e) { - throw new DBException(e); + throw new DBException(e, sql); } finally { diff --git a/base/src/org/compiere/model/Query.java b/base/src/org/compiere/model/Query.java index fe809db8cf..d454fed136 100644 --- a/base/src/org/compiere/model/Query.java +++ b/base/src/org/compiere/model/Query.java @@ -212,7 +212,7 @@ public class Query catch (SQLException e) { log.log(Level.SEVERE, sql, e); - throw new DBException(e); + throw new DBException(e, sql); } finally { DB.close(rs, pstmt); rs = null; pstmt = null; @@ -245,7 +245,7 @@ public class Query catch (SQLException e) { log.log(Level.SEVERE, sql, e); - throw new DBException(e); + throw new DBException(e, sql); } finally { DB.close(rs, pstmt); rs = null; pstmt = null; @@ -284,7 +284,7 @@ public class Query catch (SQLException e) { log.log(Level.SEVERE, sql, e); - throw new DBException(e); + throw new DBException(e, sql); } finally { @@ -397,7 +397,7 @@ public class Query } catch (SQLException e) { - throw new DBException(e); + throw new DBException(e, sql); } finally { @@ -448,7 +448,7 @@ public class Query return true; } catch (SQLException e) { - throw new DBException(e); + throw new DBException(e, sql); } finally { DB.close(rs, pstmt); @@ -494,7 +494,7 @@ public class Query catch (SQLException e) { log.log(Level.SEVERE, sql, e); - throw new DBException(e); + throw new DBException(e, sql); } finally { DB.close(rs, pstmt); rs = null; pstmt = null; @@ -525,7 +525,7 @@ public class Query catch (SQLException e) { log.log(Level.SEVERE, sql, e); - throw new DBException(e); + throw new DBException(e, sql); } finally { diff --git a/base/src/org/compiere/model/Tax.java b/base/src/org/compiere/model/Tax.java index bc309635fd..0d57386909 100644 --- a/base/src/org/compiere/model/Tax.java +++ b/base/src/org/compiere/model/Tax.java @@ -182,7 +182,7 @@ public class Tax } catch (SQLException e) { - throw new DBException(e); + throw new DBException(e, sql); } finally {