提交 b3ffdfa1 authored 作者: Thomas Mueller's avatar Thomas Mueller

Formatting and documentation.

上级 77825d1b
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -306,7 +306,7 @@ public class PgServer implements Service { ...@@ -306,7 +306,7 @@ public class PgServer implements Service {
if (tableName.startsWith("\"") && tableName.endsWith("\"")) { if (tableName.startsWith("\"") && tableName.endsWith("\"")) {
tableName = tableName.substring(1, tableName.length() - 1); tableName = tableName.substring(1, tableName.length() - 1);
} }
PreparedStatement prep = conn.prepareStatement("select oid from pg_class where relname = ?"); PreparedStatement prep = conn.prepareStatement("select oid from pg_class where relName = ?");
prep.setString(1, tableName); prep.setString(1, tableName);
ResultSet rs = prep.executeQuery(); ResultSet rs = prep.executeQuery();
if (!rs.next()) { if (!rs.next()) {
......
...@@ -649,4 +649,4 @@ importing cumulative fired convenient sums judged anybody vacuum encountered ...@@ -649,4 +649,4 @@ importing cumulative fired convenient sums judged anybody vacuum encountered
corresponds cnf informatique ilm boundaries shao crossed retroweaver usr pico corresponds cnf informatique ilm boundaries shao crossed retroweaver usr pico
pengxiang china timestampadd picked releasing autoboxing conversions pengxiang china timestampadd picked releasing autoboxing conversions
pagestore addon defaults introduced customized histogram transact locker activemq pagestore addon defaults introduced customized histogram transact locker activemq
iml iml unified regclass netbeans geqo servername creator
...@@ -14,9 +14,15 @@ import org.h2.build.BuildBase; ...@@ -14,9 +14,15 @@ import org.h2.build.BuildBase;
*/ */
public class UpgradeCreator { public class UpgradeCreator {
/**
* This method is called when executing this application from the command
* line.
*
* @param args the command line parameters
*/
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
if (args.length != 2) { if (args.length != 2) {
System.out.println("Usage: java -cp . org.h2.build.upgrade.UpgradeCreator <srcdir> <destdir>"); System.out.println("Usage: java -cp . org.h2.build.upgrade.UpgradeCreator <srcDir> <destDir>");
System.exit(1); System.exit(1);
} }
File srcDir = new File(args[0]); File srcDir = new File(args[0]);
...@@ -42,7 +48,7 @@ public class UpgradeCreator { ...@@ -42,7 +48,7 @@ public class UpgradeCreator {
"upgrade" + File.separator + "upgrade" + File.separator +
"v1_1"); "v1_1");
File fileInDestDir = new File(destDir, pathInDestDir); File fileInDestDir = new File(destDir, pathInDestDir);
// System.out.println(fileInDestDir.getAbsoluteFile()); // System.out.println(fileInDestDir.getAbsoluteFile());
if (file.isDirectory()) { if (file.isDirectory()) {
fileInDestDir.mkdirs(); fileInDestDir.mkdirs();
File[] files = file.listFiles(); File[] files = file.listFiles();
......
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Copyright 2004-2010 H2 Group. Multiple-Licensed under the H2 License, Version 1.0,
and under the Eclipse Public License, Version 1.0
(http://h2database.com/html/license.html).
Initial Developer: H2 Group
-->
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Javadoc package documentation
</title></head><body style="font: 9pt/130% Tahoma, Arial, Helvetica, sans-serif; font-weight: normal;"><p>
A tool to change the package name 'org.h2.' to a new name, to create a migration jar file.
</p></body></html>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论