"postgis_lib_build_date",
"postgis_full_version"};
public static void main(String[] args) {
Statement stat = null;
Driver d;
// Print PostGIS version
printHeading("PostGIS jdbc client code");
printVersionString("getFullVersion", Version.getFullVersion());
// Print PGJDBC Versions
printHeading("PGJDBC Driver");
printVersionString("getVersion", Driver.getVersion());
try {
d = new Driver();
} catch (Exception e) {
System.err.println("Cannot create Driver instance: " + e.getMessage());
System.exit(1);
return;
}
printVersionString("getMajorVersion", d.getMajorVersion());
printVersionString("getMinorVersion", d.getMinorVersion());
// Print PostgreSQL server versions
if (args.length == 3) {
Connection conn = null;
try {