1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-17 17:02:08 +03:00

Finished build.xml and updated Driver.java.in and buildDriver to match how Makefile and ANT operate.

This commit is contained in:
Peter Mount
2000-12-20 16:22:49 +00:00
parent 1d46fb8035
commit 751959436c
4 changed files with 61 additions and 18 deletions

View File

@ -114,7 +114,7 @@ public class Driver implements java.sql.Driver
return null;
try {
org.postgresql.Connection con = (org.postgresql.Connection)(Class.forName("%JDBCCONNECTCLASS%").newInstance());
org.postgresql.Connection con = (org.postgresql.Connection)(Class.forName("@JDBCCONNECTCLASS@").newInstance());
con.openConnection (host(), port(), props, database(), url, this);
return (java.sql.Connection)con;
} catch(ClassNotFoundException ex) {
@ -192,7 +192,7 @@ public class Driver implements java.sql.Driver
*/
public int getMajorVersion()
{
return %MAJORVERSION%;
return @MAJORVERSION@;
}
/**
@ -202,7 +202,7 @@ public class Driver implements java.sql.Driver
*/
public int getMinorVersion()
{
return %MINORVERSION%;
return @MINORVERSION@;
}
/**
@ -210,7 +210,7 @@ public class Driver implements java.sql.Driver
*/
public static String getVersion()
{
return "%VERSION%";
return "@VERSION@";
}
/**