提交 2084943f authored 作者: Thomas Mueller's avatar Thomas Mueller

The shell script h2.sh did not work with spaces in the path. It also works now…

The shell script h2.sh did not work with spaces in the path. It also works now with quoted spaces in the argument list.
上级 24216566
......@@ -18,7 +18,10 @@ Change Log
<h1>Change Log</h1>
<h2>Next Version (unreleased)</h2>
<ul><li>If the transaction log could not be truncated because of an uncommitted transaction,
<ul><li>The shell script <code>h2.sh</code> did not work with spaces in the path.
It also works now with quoted spaces in the argument list.
Thanks a lot to Shimizu Fumiyuki for the patch!
</li><li>If the transaction log could not be truncated because of an uncommitted transaction,
now "Transaction log could not be truncated" is written to the .trace.db file.
Before, the database file was growing and it was hard to find out what the root cause was.
To avoid the database file from growing, a new feature to automatically rollback the oldest
......
#!/bin/sh
dir="$(dirname $0)"
cp="$dir/h2.jar"
if [ -n "$H2DRIVERS" ] ; then
cp="$cp:$H2DRIVERS"
fi
if [ -n "$CLASSPATH" ] ; then
cp="$cp:$CLASSPATH"
fi
java -cp "$cp" org.h2.tools.Console $@
dir=$(dirname "$0")
java -cp "$dir/h2.jar:$H2DRIVERS:$CLASSPATH" org.h2.tools.Console "$@"
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论