提交 62bcf13f authored 作者: Thomas Mueller's avatar Thomas Mueller

New system property h2.defaultMaxLengthInplaceLob.

上级 05e63030
......@@ -193,6 +193,18 @@ public class SysProperties {
*/
public static final int DEFAULT_MAX_OPERATION_MEMORY = getIntSetting("h2.defaultMaxOperationMemory", 100000);
/**
* System property <code>h2.defaultMaxLengthInplaceLob</code>.<br />
* The default maximum length of an LOB that is stored in the data file itself.
* <p>
* In version 1.1, the default is 1024.
* </p>
* <p>
* In version 1.2, the default is 4096.
* </p>
*/
public static final int DEFAULT_MAX_LENGTH_INPLACE_LOB = getIntSetting("h2.defaultMaxLengthInplaceLob", Constants.VERSION <= 1.1 ? 1024 : 4096);
/**
* System property <code>h2.defaultResultSetConcurrency</code> (default:
* ResultSet.CONCUR_READ_ONLY).<br />
......
......@@ -175,11 +175,6 @@ public class Constants {
*/
public static final int DEFAULT_MAX_LENGTH_CLIENTSIDE_LOB = 65536;
/**
* The default maximum length of an LOB that is stored in the data file itself.
*/
public static final int DEFAULT_MAX_LENGTH_INPLACE_LOB = 1024;
/**
* The default maximum number of rows to be kept in memory in a result set.
*/
......
......@@ -136,7 +136,7 @@ public class Database implements DataHandler {
private int lockMode = SysProperties.DEFAULT_LOCK_MODE;
private boolean logIndexChanges;
private int logLevel = 1;
private int maxLengthInplaceLob = Constants.DEFAULT_MAX_LENGTH_INPLACE_LOB;
private int maxLengthInplaceLob = SysProperties.DEFAULT_MAX_LENGTH_INPLACE_LOB;
private int allowLiterals = Constants.DEFAULT_ALLOW_LITERALS;
private int powerOffCount = initialPowerOffCount;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论