velocity/0003-JDBC-41-compat.patch
2020-07-30 16:15:06 +02:00

34 lines
1.2 KiB
Diff

From 716435f7bda16e053e7d3166b6ef3d93a047d2c2 Mon Sep 17 00:00:00 2001
From: Fabio Valentini <decathorpe@gmail.com>
Date: Thu, 30 Jul 2020 15:37:21 +0200
Subject: [PATCH 3/8] JDBC 41 compat
---
src/test/org/apache/velocity/test/sql/HsqlDataSource.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/test/org/apache/velocity/test/sql/HsqlDataSource.java b/src/test/org/apache/velocity/test/sql/HsqlDataSource.java
index 547928b..360a6d4 100644
--- a/src/test/org/apache/velocity/test/sql/HsqlDataSource.java
+++ b/src/test/org/apache/velocity/test/sql/HsqlDataSource.java
@@ -23,6 +23,7 @@ import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
+import java.sql.SQLFeatureNotSupportedException;
import javax.sql.DataSource;
@@ -73,5 +74,8 @@ public class HsqlDataSource implements DataSource {
public Object unwrap(final Class iface) throws SQLException {
throw new SQLException("Not implemented");
}
+ public java.util.logging.Logger getParentLogger() throws SQLFeatureNotSupportedException {
+ throw new SQLFeatureNotSupportedException("getParentLogger() not supported");
+ }
}
--
2.26.2