diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-01-17 04:51:59 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-01-17 04:51:59 +0000 |
commit | 298682d9e0b0ec55d5f72cec1f4d43c23f2a1ac6 (patch) | |
tree | 57f9d4552366b3f9fe9552aafe47505ff61b14ac /src/interfaces/jdbc/makeVersion.java | |
parent | 4a6285ee445efc13f0e726be1629762ff366e602 (diff) | |
download | postgresql-298682d9e0b0ec55d5f72cec1f4d43c23f2a1ac6.tar.gz postgresql-298682d9e0b0ec55d5f72cec1f4d43c23f2a1ac6.zip |
As the email posted to the announce and interfaces list, attached is a tar
file containing the latest version of the JDBC driver, allowing it to be
compiled and used under JDK 1.2 and later.
NB: None (well almost none) of the new methods actually do anything. This
release only handles getting it to compile and run. Now this is done, I'll
start working on implementing the new stuff.
Now this tar file replaces everything under src/interfaces/jdbc. I had to
do it this way, rather than diffs, because most of the classes under the
postgresql subdirectory have moved to a new directory under that one, to
enable the support of the two JDBC standards.
Here's a list of files in the tar file. Any file not listed here (in the
postgresql directory) will have to be deleted, otherwise it could cause
the driver to fail:
Peter Mount
Diffstat (limited to 'src/interfaces/jdbc/makeVersion.java')
-rw-r--r-- | src/interfaces/jdbc/makeVersion.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/interfaces/jdbc/makeVersion.java b/src/interfaces/jdbc/makeVersion.java new file mode 100644 index 00000000000..3badfa9354c --- /dev/null +++ b/src/interfaces/jdbc/makeVersion.java @@ -0,0 +1,30 @@ +/** + * This class is used by the makefile to determine which version of the + * JDK is currently in use, and if it's using JDK1.1.x then it returns JDBC1 + * and if later, it returns JDBC2 + * + * $Id: makeVersion.java,v 1.1 1999/01/17 04:51:49 momjian Exp $ + */ +public class makeVersion +{ + public static void main(String[] args) { + String key = "java.version"; + String version = System.getProperty(key); + + //System.out.println(key+" = \""+version+"\""); + + // Tip: use print not println here as println breaks the make that + // comes with CygWin-B20.1 + + if(version.startsWith("1.0")) { + // This will trigger the unknown rule in the makefile + System.out.print("jdbc0"); + } else if(version.startsWith("1.1")) { + // This will trigger the building of the JDBC 1 driver + System.out.print("jdbc1"); + } else { + // This will trigger the building of the JDBC 2 driver + System.out.print("jdbc2"); + } + } +} |