Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Classpath set(PostgreSQL libdir),dynamic loading of JDBC Drivers done
- Loading branch information
Showing
6 changed files
with
144 additions
and
22 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/*------------------------------------------------------------------------- | ||
* | ||
* foreign-data wrapper for JDBC | ||
* | ||
* Copyright (c) 2012, PostgreSQL Global Development Group | ||
* | ||
* This software is released under the PostgreSQL Licence | ||
* | ||
* Author: Atri Sharma <atri.jiit@gmail.com> | ||
* | ||
* IDENTIFICATION | ||
* jdbc_fdw/JDBCDriverLoader.java | ||
* | ||
*------------------------------------------------------------------------- | ||
*/ | ||
|
||
import java.io.*; | ||
import java.net.URL; | ||
import java.net.URLClassLoader; | ||
import java.net.MalformedURLException; | ||
|
||
public class JDBCDriverLoader extends URLClassLoader{ | ||
public | ||
JDBCDriverLoader(URL[] path) | ||
{ | ||
super (path); | ||
} | ||
public void | ||
addPath(String path) throws MalformedURLException | ||
{ | ||
addURL (new URL (path)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters