mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
- Fix null pointer java error when connecting to jdbc:drill driver.
By setting the context class loader. modified: storage/connect/JavaWrappers.jar modified: storage/connect/JdbcInterface.java modified: storage/connect/mysql-test/connect/std_data/JdbcMariaDB.jar
This commit is contained in:
Binary file not shown.
@@ -83,6 +83,9 @@ public class JdbcInterface {
|
|||||||
|
|
||||||
CheckURL(parms[1], null);
|
CheckURL(parms[1], null);
|
||||||
|
|
||||||
|
// This is required for drivers using context class loaders
|
||||||
|
Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
|
||||||
|
|
||||||
if (parms[2] != null && !parms[2].isEmpty()) {
|
if (parms[2] != null && !parms[2].isEmpty()) {
|
||||||
if (DEBUG)
|
if (DEBUG)
|
||||||
System.out.println("user=" + parms[2] + " pwd=" + parms[3]);
|
System.out.println("user=" + parms[2] + " pwd=" + parms[3]);
|
||||||
|
Binary file not shown.
Reference in New Issue
Block a user