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

--no commit message

--no commit message
上级 00044424
......@@ -30,6 +30,7 @@ import org.h2.tools.SimpleResultSet;
import org.h2.util.JdbcUtils;
import org.h2.util.MathUtils;
import org.h2.util.MemoryUtils;
import org.h2.util.NetUtils;
import org.h2.util.ObjectArray;
import org.h2.util.ScriptReader;
import org.h2.util.StringUtils;
......@@ -212,7 +213,7 @@ public class AppThread extends WebServerThread {
Locale locale = session.locale;
if(language != null) {
if(locale == null || !StringUtils.toLowerEnglish(locale.getLanguage()).equals(language)) {
locale = new Locale(language);
locale = new Locale(language, "");
server.readTranslations(session, locale.getLanguage());
session.put("language", language);
session.locale = locale;
......@@ -699,7 +700,6 @@ public class AppThread extends WebServerThread {
rs.addColumn("VALUE", Types.VARCHAR, 0, 0);
rs.addRow(new String[]{"conn.getCatalog", conn.getCatalog()});
rs.addRow(new String[]{"conn.getAutoCommit", ""+conn.getAutoCommit()});
rs.addRow(new String[]{"conn.getHoldability", ""+conn.getHoldability()});
rs.addRow(new String[]{"conn.getTransactionIsolation", ""+conn.getTransactionIsolation()});
rs.addRow(new String[]{"conn.getWarnings", ""+conn.getWarnings()});
String map;
......@@ -712,8 +712,6 @@ public class AppThread extends WebServerThread {
rs.addRow(new String[]{"conn.isReadOnly", ""+conn.isReadOnly()});
rs.addRow(new String[]{"meta.getCatalogSeparator", ""+meta.getCatalogSeparator()});
rs.addRow(new String[]{"meta.getCatalogTerm", ""+meta.getCatalogTerm()});
rs.addRow(new String[]{"meta.getDatabaseMajorVersion", ""+meta.getDatabaseMajorVersion()});
rs.addRow(new String[]{"meta.getDatabaseMinorVersion", ""+meta.getDatabaseMinorVersion()});
rs.addRow(new String[]{"meta.getDatabaseProductName", ""+meta.getDatabaseProductName()});
rs.addRow(new String[]{"meta.getDatabaseProductVersion", ""+meta.getDatabaseProductVersion()});
rs.addRow(new String[]{"meta.getDefaultTransactionIsolation", ""+meta.getDefaultTransactionIsolation()});
......@@ -723,8 +721,6 @@ public class AppThread extends WebServerThread {
rs.addRow(new String[]{"meta.getDriverVersion", ""+meta.getDriverVersion()});
rs.addRow(new String[]{"meta.getExtraNameCharacters", ""+meta.getExtraNameCharacters()});
rs.addRow(new String[]{"meta.getIdentifierQuoteString", ""+meta.getIdentifierQuoteString()});
rs.addRow(new String[]{"meta.getJDBCMajorVersion", ""+meta.getJDBCMajorVersion()});
rs.addRow(new String[]{"meta.getJDBCMinorVersion", ""+meta.getJDBCMinorVersion()});
rs.addRow(new String[]{"meta.getMaxBinaryLiteralLength", ""+meta.getMaxBinaryLiteralLength()});
rs.addRow(new String[]{"meta.getMaxCatalogNameLength", ""+meta.getMaxCatalogNameLength()});
rs.addRow(new String[]{"meta.getMaxCharLiteralLength", ""+meta.getMaxCharLiteralLength()});
......@@ -747,11 +743,9 @@ public class AppThread extends WebServerThread {
rs.addRow(new String[]{"meta.getMaxUserNameLength", ""+meta.getMaxUserNameLength()});
rs.addRow(new String[]{"meta.getNumericFunctions", ""+meta.getNumericFunctions()});
rs.addRow(new String[]{"meta.getProcedureTerm", ""+meta.getProcedureTerm()});
rs.addRow(new String[]{"meta.getResultSetHoldability", ""+meta.getResultSetHoldability()});
rs.addRow(new String[]{"meta.getSchemaTerm", ""+meta.getSchemaTerm()});
rs.addRow(new String[]{"meta.getSearchStringEscape", ""+meta.getSearchStringEscape()});
rs.addRow(new String[]{"meta.getSQLKeywords", ""+meta.getSQLKeywords()});
rs.addRow(new String[]{"meta.getSQLStateType", ""+meta.getSQLStateType()});
rs.addRow(new String[]{"meta.getStringFunctions", ""+meta.getStringFunctions()});
rs.addRow(new String[]{"meta.getSystemFunctions", ""+meta.getSystemFunctions()});
rs.addRow(new String[]{"meta.getTimeDateFunctions", ""+meta.getTimeDateFunctions()});
......@@ -764,7 +758,6 @@ public class AppThread extends WebServerThread {
rs.addRow(new String[]{"meta.dataDefinitionCausesTransactionCommit", ""+meta.dataDefinitionCausesTransactionCommit()});
rs.addRow(new String[]{"meta.dataDefinitionIgnoredInTransactions", ""+meta.dataDefinitionIgnoredInTransactions()});
rs.addRow(new String[]{"meta.doesMaxRowSizeIncludeBlobs", ""+meta.doesMaxRowSizeIncludeBlobs()});
rs.addRow(new String[]{"meta.locatorsUpdateCopy", ""+meta.locatorsUpdateCopy()});
rs.addRow(new String[]{"meta.nullPlusNonNullIsNull", ""+meta.nullPlusNonNullIsNull()});
rs.addRow(new String[]{"meta.nullsAreSortedAtEnd", ""+meta.nullsAreSortedAtEnd()});
rs.addRow(new String[]{"meta.nullsAreSortedAtStart", ""+meta.nullsAreSortedAtStart()});
......@@ -797,11 +790,21 @@ public class AppThread extends WebServerThread {
rs.addRow(new String[]{"meta.supportsExpressionsInOrderBy", ""+meta.supportsExpressionsInOrderBy()});
rs.addRow(new String[]{"meta.supportsExtendedSQLGrammar", ""+meta.supportsExtendedSQLGrammar()});
rs.addRow(new String[]{"meta.supportsFullOuterJoins", ""+meta.supportsFullOuterJoins()});
rs.addRow(new String[]{"meta.supportsGetGeneratedKeys", ""+meta.supportsGetGeneratedKeys()});
rs.addRow(new String[]{"meta.supportsGroupBy", ""+meta.supportsGroupBy()});
// TODO meta data: more supports methods (I'm tired now)
rs.addRow(new String[]{"meta.usesLocalFilePerTable", ""+meta.usesLocalFilePerTable()});
rs.addRow(new String[]{"meta.usesLocalFiles", ""+meta.usesLocalFiles()});
//#ifdef JDK14
rs.addRow(new String[]{"conn.getHoldability", ""+conn.getHoldability()});
rs.addRow(new String[]{"meta.getDatabaseMajorVersion", ""+meta.getDatabaseMajorVersion()});
rs.addRow(new String[]{"meta.getDatabaseMinorVersion", ""+meta.getDatabaseMinorVersion()});
rs.addRow(new String[]{"meta.getJDBCMajorVersion", ""+meta.getJDBCMajorVersion()});
rs.addRow(new String[]{"meta.getJDBCMinorVersion", ""+meta.getJDBCMinorVersion()});
rs.addRow(new String[]{"meta.getResultSetHoldability", ""+meta.getResultSetHoldability()});
rs.addRow(new String[]{"meta.getSQLStateType", ""+meta.getSQLStateType()});
rs.addRow(new String[]{"meta.supportsGetGeneratedKeys", ""+meta.supportsGetGeneratedKeys()});
rs.addRow(new String[]{"meta.locatorsUpdateCopy", ""+meta.locatorsUpdateCopy()});
//#endif
return rs;
} else if(sql.startsWith("@CATALOGS")) {
return meta.getCatalogs();
......@@ -845,6 +848,7 @@ public class AppThread extends WebServerThread {
return meta.getUDTs(p[1], p[2], p[3], types);
} else if(sql.startsWith("@TYPE_INFO")) {
return meta.getTypeInfo();
//#ifdef JDK14
} else if(sql.startsWith("@SUPER_TYPES")) {
String[] p = split(sql);
return meta.getSuperTypes(p[1], p[2], p[3]);
......@@ -854,6 +858,7 @@ public class AppThread extends WebServerThread {
} else if(sql.startsWith("@ATTRIBUTES")) {
String[] p = split(sql);
return meta.getAttributes(p[1], p[2], p[3], p[4]);
//#endif
}
return null;
}
......@@ -1219,7 +1224,7 @@ public class AppThread extends WebServerThread {
if(server.getAppServer().getAllowOthers()) {
return true;
}
return socket.getInetAddress().isLoopbackAddress();
return NetUtils.isLoopbackAddress(socket);
}
}
......@@ -15,7 +15,7 @@ import org.h2.util.StringUtils;
public class DbContents {
DbSchema[] schemas;
DbSchema defaultSchema;
boolean isOracle, isH2, isPostgreSQL, isHSQLDB, isMySQL, isDerby, isFirebird, isSQLite;
boolean isOracle, isH2, isPostgreSQL, isMySQL, isDerby, isFirebird, isSQLite;
void readContents(DatabaseMetaData meta) throws SQLException {
String prod = StringUtils.toLowerEnglish(meta.getDatabaseProductName());
......
......@@ -36,6 +36,7 @@ public class WebServer implements Service {
{ "fr", "Fran\u00e7ais" },
{ "es", "Espa\u00f1ol" },
{ "zh_CN", "\u4E2D\u6587"},
{ "ja", "\u65e5\u672c\u8a9e"},
};
// String lang =
......
......@@ -30,7 +30,7 @@ adminTitle=H2 Console Optionen
helpAction=Aktion
helpAddAnotherRow=Fügt einen weiteren Datensatz hinzu
helpAddDrivers=Datenbank Treiber hinzufügen
helpAddDriversOnlyJava=Zusäliche Treiber werden nur von der Java Version unterstüzt (nicht von der Native Version).
helpAddDriversOnlyJava=Zusäzliche Treiber werden nur von der Java Version unterstüzt (nicht von der Native Version).
helpAddDriversText=Es ist möglich zusätzliche Datenbank-Treiber zu laden, indem die Pfade der Treiber-Dateien in den Umgebungsvariablen H2DRIVERS oder CLASSPATH eingetragen werden. Beispiel (Windows): Um den Datenbank-Treiber mit dem Jar-File C:\\Programs\\hsqldb\\lib\\hsqldb.jar hinzuzufügen, setzen Sie den die Umgebungvariable H2DRIVERS auf C:\\Programs\\hsqldb\\lib\\hsqldb.jar.
helpAddRow=Fügt einen Datensatz hinzu
helpCommandHistory=Zeigt die Befehls-Chronik
......
# Use the PropertiesToUTF8 tool to translate the files to UTF-8 and back
# Translator: IKEMOTO, Masahiro <ikeyan (at) arizona (dot) ne (dot) jp>
a.help=\u30d8\u30eb\u30d7
a.language=\u65e5\u672c\u8a9e
a.lynxNotSupported=Lynx\u306b\u306f\u307e\u3060\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093
a.password=\u30d1\u30b9\u30ef\u30fc\u30c9
a.remoteConnectionsDisabled=\u3053\u306e\u30b5\u30fc\u30d0\u3067\u306f\u3001\u30ea\u30e2\u30fc\u30c8\u63a5\u7d9a('webAllowOthers')\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u305b\u3093\u3002
a.title=H2\u30b3\u30f3\u30bd\u30fc\u30eb
a.user=\u30e6\u30fc\u30b6\u540d
admin.executing=\u5b9f\u884c\u4e2d
admin.ip=IP
admin.lastAccess=\u6700\u7d42\u30a2\u30af\u30bb\u30b9
admin.lastQuery=\u6700\u7d42\u554f\u3044\u5408\u305b
admin.url=URL
adminAllow=\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u63a5\u7d9a\u8a31\u53ef
adminConnection=\u63a5\u7d9a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3
adminHttp=\u6697\u53f7\u5316\u3055\u308c\u306a\u3044 HTTP \u63a5\u7d9a\u3092\u4f7f\u7528
adminHttps=\u6697\u53f7\u5316\u3055\u308c\u305f SSL (HTTPS) \u63a5\u7d9a\u3092\u4f7f\u7528
adminLocal=\u30ed\u30fc\u30ab\u30eb\u63a5\u7d9a\u306e\u307f\u8a31\u53ef
adminLogin=\u7ba1\u7406\u8005\u30ed\u30b0\u30a4\u30f3
adminLoginCancel=\u30ad\u30e3\u30f3\u30bb\u30eb
adminLoginOk=OK
adminLogout=\u30ed\u30b0\u30a2\u30a6\u30c8
adminOthers=\u4ed6\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u304b\u3089\u306e\u63a5\u7d9a\u3092\u8a31\u53ef
adminPort=Web\u30b5\u30fc\u30d0\u30dd\u30fc\u30c8\u756a\u53f7
adminRestart=\u5909\u66f4\u306f\u30b5\u30fc\u30d0\u306e\u518d\u8d77\u52d5\u5f8c\u306b\u6709\u52b9\u306b\u306a\u308a\u307e\u3059\u3002
adminSave=\u4fdd\u5b58
adminSessions=\u30a2\u30af\u30c6\u30a3\u30d6\u30bb\u30c3\u30b7\u30e7\u30f3
adminShutdown=\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3
adminTitle=H2\u30b3\u30f3\u30bd\u30fc\u30eb\u8a2d\u5b9a
helpAction=\u30a2\u30af\u30b7\u30e7\u30f3
helpAddAnotherRow=\u5225\u306e\u884c\u3092\u8ffd\u52a0
helpAddDrivers=\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30c9\u30e9\u30a4\u30d0\u306e\u8ffd\u52a0
helpAddDriversOnlyJava=\u8ffd\u52a0\u30c9\u30e9\u30a4\u30d0\u6a5f\u80fd\u306f\u3001Java\u7248\u306e\u307f\u3067\u4f7f\u7528\u3067\u304d\u307e\u3059 (\u30cd\u30a4\u30c6\u30a3\u30d6\u7248\u3067\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093)\u3002
helpAddDriversText=\u8ffd\u52a0\u30c9\u30e9\u30a4\u30d0\u306f\u3001Jar\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u3092\u74b0\u5883\u5909\u6570 H2DRIVERS\u3001\u307e\u305f\u306f CLASSPATH \u306b\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u767b\u9332\u3067\u304d\u307e\u3059\u3002\u4f8b (Windows): \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30c9\u30e9\u30a4\u30d0\u30e9\u30a4\u30d6\u30e9\u30ea C:\\Programs\\hsqldb\\lib\\hsqldb.jar \u3092\u8ffd\u52a0\u3059\u308b\u306b\u306f\u3001\u74b0\u5883\u5909\u6570 H2DRIVERS \u306b\u3001C:\\Programs\\hsqldb\\lib\\hsqldb.jar \u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002
helpAddRow=\u65b0\u3057\u3044\u884c\u3092\u8ffd\u52a0
helpCommandHistory=\u30b3\u30de\u30f3\u30c9\u5c65\u6b74\u3092\u8868\u793a
helpCreateTable=ID\u3001\u304a\u3088\u3073 NAME \u5217\u3092\u6301\u3064
helpDeleteRow=\u884c\u3092\u524a\u9664
helpDisconnect=\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u63a5\u7d9a\u3092\u5207\u65ad
helpDisplayThis=\u3053\u306e\u30da\u30fc\u30b8\u3092\u8868\u793a
helpDropTable=\u5b58\u5728\u3059\u308b\u306a\u3089\u30c6\u30fc\u30d6\u30eb\u3092\u524a\u9664
helpExecuteCurrent=\u73fe\u5728\u306eSQL\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u5b9f\u884c
helpIcon=\u30a2\u30a4\u30b3\u30f3
helpImportantCommands=\u91cd\u8981\u306a\u30b3\u30de\u30f3\u30c9
helpOperations=\u30aa\u30da\u30ec\u30fc\u30b7\u30e7\u30f3
helpQuery=\u30c6\u30fc\u30d6\u30eb\u554f\u3044\u5408\u308f\u305b
helpSampleSQL=SQL\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306e\u30b5\u30f3\u30d7\u30eb
helpStatements=SQL\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8
helpUpdate=\u884c\u30c7\u30fc\u30bf\u306e\u5909\u66f4
helpWithColumnsIdName=\u65b0\u3057\u3044\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210
login.connect=\u63a5\u7d9a
login.driverClass=\u30c9\u30e9\u30a4\u30d0\u30af\u30e9\u30b9
login.driverNotFound=\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30c9\u30e9\u30a4\u30d0\u304c\u898b\u4ed8\u304b\u308a\u307e\u305b\u3093<br>\u30d8\u30eb\u30d7\u3067\u30c9\u30e9\u30a4\u30d0\u306e\u8ffd\u52a0\u65b9\u6cd5\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044
login.goAdmin=\u8a2d\u5b9a
login.jdbcUrl=JDBC URL
login.language=\u8a00\u8a9e
login.login=\u30ed\u30b0\u30a4\u30f3
login.remove=\u524a\u9664
login.save=\u4fdd\u5b58
login.savedSetting=\u4fdd\u5b58\u6e08\u8a2d\u5b9a
login.settingName=\u8a2d\u5b9a\u540d
login.testConnection=\u63a5\u7d9a\u30c6\u30b9\u30c8
login.testSuccessful=\u30c6\u30b9\u30c8\u306f\u6210\u529f\u3057\u307e\u3057\u305f
login.welcome=H2\u30b3\u30f3\u30bd\u30fc\u30eb
result.1row=1 \u884c
result.autocommitOff=\u30aa\u30fc\u30c8\u30b3\u30df\u30c3\u30c8\u304c\u7121\u52b9\u306b\u306a\u308a\u307e\u3057\u305f
result.autocommitOn=\u30aa\u30fc\u30c8\u30b3\u30df\u30c3\u30c8\u304c\u6709\u52b9\u306b\u306a\u308a\u307e\u3057\u305f
result.maxrowsSet=\u6700\u5927\u884c\u6570\u304c\u8a2d\u5b9a\u3055\u308c\u307e\u3057\u305f
result.noRows=\u8a72\u5f53\u884c\u7121\u3057
result.noRunningStatement=\u73fe\u5728\u5b9f\u884c\u4e2d\u306e\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306f\u3042\u308a\u307e\u305b\u3093
result.rows=\u884c
result.statementWasCancelled=\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u304c\u30ad\u30e3\u30f3\u30bb\u30eb\u3055\u308c\u307e\u3057\u305f
result.updateCount=\u66f4\u65b0\u6570
resultEdit.add=\u8ffd\u52a0
resultEdit.cancel=\u30ad\u30e3\u30f3\u30bb\u30eb
resultEdit.delete=\u524a\u9664
resultEdit.edit=\u7de8\u96c6
resultEdit.editResult=\u7de8\u96c6
resultEdit.save=\u4fdd\u5b58
toolbar.all=\u5168\u3066
toolbar.autocommit=\u30aa\u30fc\u30c8\u30b3\u30df\u30c3\u30c8
toolbar.autocomplete=\u30aa\u30fc\u30c8\u30b3\u30f3\u30d7\u30ea\u30fc\u30c8
toolbar.autocomplete.off=\u30aa\u30d5
toolbar.autocomplete.normal=\u30ce\u30fc\u30de\u30eb
toolbar.autocomplete.full=\u30d5\u30eb
toolbar.cancelStatement=\u73fe\u5728\u306e\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u30ad\u30e3\u30f3\u30bb\u30eb
toolbar.clear=\u30af\u30ea\u30a2
toolbar.commit=\u30b3\u30df\u30c3\u30c8
toolbar.disconnect=\u5207\u65ad
toolbar.history=\u30b3\u30de\u30f3\u30c9\u5c65\u6b74
toolbar.maxRows=\u6700\u5927\u884c\u6570
toolbar.refresh=\u30ea\u30d5\u30ec\u30c3\u30b7\u30e5
toolbar.rollback=\u30ed\u30fc\u30eb\u30d0\u30c3\u30af
toolbar.run=\u5b9f\u884c (Ctrl+Enter)
toolbar.sqlStatement=SQL\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8
tree.admin=\u7ba1\u7406\u8005
tree.current=\u73fe\u5728\u5024
tree.hashed=\u30cf\u30c3\u30b7\u30e5
tree.increment=\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8
tree.indexes=\u30a4\u30f3\u30c7\u30c3\u30af\u30b9
tree.nonUnique=Non-Unique
tree.sequences=\u30b7\u30fc\u30b1\u30f3\u30b9
tree.unique=Unique
tree.users=\u30e6\u30fc\u30b6
......@@ -448,7 +448,9 @@ public class Csv implements SimpleRowSource {
private SQLException convertException(String message, Exception e) {
SQLException s = new SQLException(message, "CSV");
//#ifdef JDK14
s.initCause(e);
//#endif
return s;
}
......
......@@ -1254,22 +1254,24 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
//#endif
/** INTERNAL */
//#ifdef JDK16
//#ifdef JDK16
/*
public void updateRowId(String columnName, RowId x) throws SQLException {
throw getUnsupportedException();
}
*/
//#endif
//#endif
/**
* Returns the current result set holdability.
*
* @return the holdability
*/
//#ifdef JDK14
public int getHoldability() {
return ResultSet.HOLD_CURSORS_OVER_COMMIT;
}
//#endif
/**
* Returns whether this result set has been closed.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论