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

Documentation.

上级 2ae9a839
......@@ -4399,7 +4399,6 @@ public class Parser {
return null;
}
private Sequence findSequence(String schema, String sequenceName) {
Sequence sequence = database.getSchema(schema).findSequence(sequenceName);
if (sequence != null) {
......
......@@ -58,7 +58,7 @@ public class CreateFunctionAlias extends SchemaCommand {
}
/**
* Set the qualified method name after removing whitespaces.
* Set the qualified method name after removing whitespace.
*
* @param method the qualified method name
*/
......
......@@ -1956,6 +1956,12 @@ public class Database implements DataHandler {
return exclusiveSession;
}
/**
* Set the session that can exclusively access the database.
*
* @param session the session
* @param closeOthers whether other sessions are closed
*/
public void setExclusiveSession(Session session, boolean closeOthers) {
this.exclusiveSession = session;
if (closeOthers) {
......
......@@ -52,7 +52,7 @@ public class FunctionAlias extends SchemaObjectBase {
/**
* Create a new alias based on a method name.
*
* @param db the database
* @param schema the schema
* @param id the id
* @param name the name
* @param javaClassMethod the class and method name
......@@ -75,7 +75,7 @@ public class FunctionAlias extends SchemaObjectBase {
/**
* Create a new alias based on source code.
*
* @param db the database
* @param schema the schema
* @param id the id
* @param name the name
* @param source the source code
......
......@@ -295,9 +295,10 @@ java org.h2.test.TestAll timer
// System.setProperty("h2.lobInDatabase", "true");
// System.setProperty("h2.analyzeAuto", "100");
// System.setProperty("h2.pageSize", "64");
/*
// System.setProperty("h2.pageSize", "64");
test with small freeList pages, page size 64
test services on Windows
......
......@@ -162,8 +162,8 @@ public class TestFunctions extends TestBase implements AggregateFunction {
rs.next();
assertEquals(0, rs.getInt(1));
stat.execute("drop alias getCount");
rs = stat.executeQuery("SELECT * FROM INFORMATION_SCHEMA.FUNCTION_ALIASES WHERE UPPER(ALIAS_NAME) = 'GETCOUNT'");
assertEquals(false, rs.next());
rs = stat.executeQuery("SELECT * FROM INFORMATION_SCHEMA.FUNCTION_ALIASES WHERE UPPER(ALIAS_NAME) = 'GET' || 'COUNT'");
assertFalse(rs.next());
stat.execute("create alias reverse deterministic for \""+getClass().getName()+".reverse\"");
rs = stat.executeQuery("select reverse(x) from system_range(700, 700)");
rs.next();
......@@ -473,10 +473,6 @@ public class TestFunctions extends TestBase implements AggregateFunction {
conn.close();
}
/**
* White spaces in javaMethodDescriptors are deleted during
* CreateFunctionAlias, and all further processing is normalized.
*/
private void testWhiteSpacesInParameters() throws SQLException {
deleteDb("functions");
Connection conn = getConnection("functions");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论