提交 4f78163e authored 作者: Thomas Mueller's avatar Thomas Mueller

Experimental feature to support case sensitive catalog names and database names…

Experimental feature to support case sensitive catalog names and database names using the DATABASE() method.
上级 fd8c9613
......@@ -18,7 +18,12 @@ Change Log
<h1>Change Log</h1>
<h2>Next Version (unreleased)</h2>
<ul><li>Experimental feature to support nested joins.
<ul><li>Experimental feature to support case sensitive catalog names
and database names using the DATABASE() method.
To use this feature, set the system property h2.databaseToUpper to false.
The plan is to set the property to false by default in version 1.3.x.
Issue 204 - thanks to Sylvain Cuaz (ILM Informatique) for the patch.
</li><li>Experimental feature to support nested joins.
To enable, set the system property h2.nestedJoins to true.
If enabled, nested joins and right outer joins should work as expected (issues 145, 177, and 203).
The plan is to enable this feature by default in version 1.3.x.
......
......@@ -34,6 +34,7 @@ See also <a href="build.html#providing_patches">Providing Patches</a>.
(also remove Constants.UNDO_BLOCK_SIZE).
Later, change undo log file format (fillAligned no longer required; var int).
</li><li>Enable h2.nestedJoins (nested joins and right outer joins).
</li><li>Disable h2.databaseToUpper (database short names are converted to uppercase).
</li></ul>
<h2>Priority 1</h2>
......
......@@ -186,6 +186,14 @@ public class SysProperties {
*/
public static final boolean CONSOLE_STREAM = getBooleanSetting("h2.consoleStream", true);
/**
* System property <code>h2.databaseToUpper</code> (default: true).<br />
* Database short names are converted to uppercase for the DATABASE()
* function, and in the CATALOG column of all database meta data methods.
* Setting this to "false" is experimental.
*/
public static final boolean DATABASE_TO_UPPER = getBooleanSetting("h2.databaseToUpper", true);
/**
* System property <code>h2.defaultEscape</code> (default: \).<br />
* The default escape character for LIKE comparisons. To select no escape
......@@ -284,7 +292,6 @@ public class SysProperties {
* to uppercase.
*/
public static final boolean IDENTIFIERS_TO_UPPER = getBooleanSetting("h2.identifiersToUpper", true);
/**
* System property <code>h2.largeResultBufferSize</code> (default: 4096).<br />
* Buffer size for large result sets. Set this value to 0 to disable the
......
......@@ -478,9 +478,9 @@ public class Database implements DataHandler {
}
}
if (n == null || n.length() == 0) {
n = "UNNAMED";
n = "unnamed";
}
return StringUtils.toUpperEnglish(n);
return SysProperties.DATABASE_TO_UPPER ? StringUtils.toUpperEnglish(n) : n;
}
private synchronized void open(int traceLevelFile, int traceLevelSystemOut) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论