Update of /cvsroot/monetdb/clients/src/java/src/nl/cwi/monetdb/client
In directory
sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv7945/src/nl/cwi/monetdb/client
Modified Files:
Tag: Clients_1-18
JdbcClient.java
Log Message:
Reverted changes: no new features.
If any changes are merely bugfixes, they will have to be redone.
Index: JdbcClient.java
===================================================================
RCS file:
/cvsroot/monetdb/clients/src/java/src/nl/cwi/monetdb/client/JdbcClient.java,v
retrieving revision 1.4.2.1
retrieving revision 1.4.2.2
diff -u -d -r1.4.2.1 -r1.4.2.2
--- JdbcClient.java 16 Aug 2007 10:52:46 -0000 1.4.2.1
+++ JdbcClient.java 17 Aug 2007 12:56:44 -0000 1.4.2.2
@@ -66,7 +66,7 @@
// this one is only here for the .monetdb file parsing, it is
// removed before the command line arguments are parsed
copts.addOption(null, "password", CmdLineOpts.CAR_ONE, null,
null);
- copts.addOption("d", "database", CmdLineOpts.CAR_ONE, "",
+ copts.addOption("d", "database", CmdLineOpts.CAR_ONE, "demo",
"Try to connect to the given database (only
makes sense " +
"if connecting to a DatabasePool, M5 or
equivalent process).");
copts.addOption("l", "language", CmdLineOpts.CAR_ONE, "sql",
@@ -152,7 +152,7 @@
if (copts.getOption("help").isPresent()) {
System.out.print(
-"Usage java -jar jdbcclient.jar\n" +
+"Usage java -jar jdbcclient-X.Y.jar\n" +
" [-h host[:port]] [-p port] [-f file] [-u user]\n" +
" [-l language] [-b database] [-e] [-d [table]]\n" +
" [-X<opt>]\n" +
@@ -178,7 +178,7 @@
// We cannot use the DatabaseMetaData here, because we
// cannot get a Connection. So instead, we just get the
// values we want out of the Driver directly.
- System.out.println("Driver: v" +
+ System.out.println("Driver: " +
nl.cwi.monetdb.jdbc.MonetDriver.getDriverVersion());
System.exit(0);
}
@@ -450,12 +450,10 @@
// print welcome message
out.println("Welcome to the MonetDB
interactive JDBC terminal!");
if (dbmd != null) {
- out.println("Database: " +
-
dbmd.getDatabaseProductName() + " v" +
-
dbmd.getDatabaseProductVersion() + ", '" +
-
dbmd.getConnection().getCatalog() + "'");
- out.println("Driver: " +
dbmd.getDriverName() + " v" +
-
dbmd.getDriverVersion());
+ out.println("Database: " +
dbmd.getDatabaseProductName() + " " +
+
dbmd.getDatabaseProductVersion());
+ out.println("Driver: " +
dbmd.getDriverName() + " " +
+
dbmd.getDriverVersion());
}
out.println("Type \\q to quit, \\h for
a list of available commands");
out.flush();
@@ -669,8 +667,7 @@
boolean found =
false;
while
(tbl.next()) {
if
(tbl.getString("TABLE_NAME").equalsIgnoreCase(object) ||
-
(tbl.getString("TABLE_SCHEM") + "." +
tbl.getString("TABLE_NAME")).equalsIgnoreCase(object))
- {
+
(tbl.getString("TABLE_SCHEM") + "." +
tbl.getString("TABLE_NAME")).equalsIgnoreCase(object)) {
// we found it, describe it
e.dumpSchema(
dbmd,
@@ -682,7 +679,7 @@
found = true;
break;
- }
+
}
}
if (!found)
System.err.println("Unknown table or view: " + object);
tbl.close();
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins