提交 82e4de37 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 40d0ad31
......@@ -1373,7 +1373,7 @@ Change Log
Next Version (unreleased)
@changelog_1002_li
The ChangeFileEncryption and Backup tools will now fail with an exception if the database is still in use.
The ChangeFileEncryption tool will now fail with an exception if the database is still in use. The Backup tool will also fail except when running in quiet mode.
@changelog_1003_li
CSVREAD: when reading the column names from the CSV file, column names that contain no special characters are considered case insensitive now.
......
......@@ -1373,7 +1373,7 @@ Centralリポジトリの利用
#Next Version (unreleased)
@changelog_1002_li
#The ChangeFileEncryption and Backup tools will now fail with an exception if the database is still in use.
#The ChangeFileEncryption tool will now fail with an exception if the database is still in use. The Backup tool will also fail except when running in quiet mode.
@changelog_1003_li
#CSVREAD: when reading the column names from the CSV file, column names that contain no special characters are considered case insensitive now.
......
......@@ -456,7 +456,7 @@ build_1093_li=The rail images (one straight, four junctions, two turns) are gene
build_1094_p=\ To generate railroad diagrams for other grammars, see the package <code>org.h2.jcr</code>. This package is used to generate the SQL-2 railroad diagrams for the JCR 2.0 specification.
changelog_1000_h1=Change Log
changelog_1001_h2=Next Version (unreleased)
changelog_1002_li=The ChangeFileEncryption and Backup tools will now fail with an exception if the database is still in use.
changelog_1002_li=The ChangeFileEncryption tool will now fail with an exception if the database is still in use. The Backup tool will also fail except when running in quiet mode.
changelog_1003_li=CSVREAD\: when reading the column names from the CSV file, column names that contain no special characters are considered case insensitive now.
changelog_1004_li=Optimization index conditions of the form 'column\=NULL' (which is always false; unlike 'column IS NULL').
changelog_1005_li=Script command and tool\: the primary key constraint is now listed before inserting the data. This will result in a smaller database when using the page store.
......
org.h2.tools.Backup=Creates a backup of a database.\nThe database must be closed before using this tool.
org.h2.tools.Backup=Creates a backup of a database.\nThe database must be closed before using this tool,\n except when running in quiet mode.
org.h2.tools.Backup.main=Options are case sensitive. Supported options are\:\n[-help] or [-?] Print the list of options\n[-file <filename>] The target file name (default\: backup.zip)\n[-dir <dir>] The source directory (default\: .)\n[-db <database>] Source database; not required if there is only one\n[-quiet] Do not print progress information
org.h2.tools.ChangeFileEncryption=Allows changing the database file encryption password or algorithm.\nThis tool can not be used to change a password of a user.\n The database must be closed before using this tool.
org.h2.tools.ChangeFileEncryption.main=Options are case sensitive. Supported options are\:\n[-help] or [-?] Print the list of options\n[-cipher type] The encryption type (AES or XTEA)\n[-dir <dir>] The database directory (default\: .)\n[-db <database>] Database name (all databases if not set)\n[-decrypt <pwd>] The decryption password (if not set\: not yet encrypted)\n[-encrypt <pwd>] The encryption password (if not set\: do not encrypt)\n[-quiet] Do not print progress information
......
......@@ -166,9 +166,10 @@ public class TestCrashAPI extends TestBase {
// url += ";TRACE_LEVEL_FILE=3";
Connection conn = null;
// System.gc();
String fileName = "temp/backup/db-" + uniqueId++ + ".zip";
Backup.execute(fileName, baseDir + "/" + DIR, dbName, true);
// close databases earlier
System.gc();
try {
conn = DriverManager.getConnection(url, "sa", getPassword(""));
// delete the backup if opening was successful
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论