提交 42715ee9 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 9cf66529
......@@ -66,6 +66,7 @@ public class AggregateData {
if(value == null) {
value = v;
} else {
v = v.convertTo(value.getType());
value = value.add(v);
}
break;
......
......@@ -78,6 +78,7 @@ public class Comparison extends Condition {
Function function = Function.getFunction(session.getDatabase(), "CAST");
function.setParameter(0, expr);
function.setDataType(dataType, precision, scale);
function.doneWithParameters();
return function.optimize(session);
}
......
......@@ -97,7 +97,7 @@ public class ConditionAndOr extends Condition {
}
public Expression optimize(Session session) throws SQLException {
// TODO NULL values: see http://www-cs-students.stanford.edu/~wlam/compsci/sqlnulls
// TODO NULL: see http://www-cs-students.stanford.edu/~wlam/compsci/sqlnulls
// TODO test if all optimizations are switched off against all on (including performance)
// TODO document NULL exactly for every case
left = left.optimize(session);
......
......@@ -358,12 +358,12 @@ public class BtreeNode extends BtreePage {
String first = null;
String last = null;
for(int i=0; i<pageChildren.size(); i++) {
String firstnow = index.getPage(pageChildren.get(i)).print(indent + " ");
String firstNow = index.getPage(pageChildren.get(i)).print(indent + " ");
if(first == null) {
first = firstnow;
first = firstNow;
}
if(last != null && !last.equals(firstnow)) {
System.out.println("STOP!!! " + last + " firstnow:" + firstnow);
if(last != null && !last.equals(firstNow)) {
System.out.println("STOP!!! " + last + " firstNow:" + firstNow);
}
if(i<pageData.size()) {
String now = getData(i).getValue(1).getString().substring(4150);
......
......@@ -104,19 +104,19 @@ public class LinearHashBucket extends Record {
public int getRealByteCount(DataPage dummy) throws SQLException {
int size = 2 + dummy.getIntLen() + dummy.getIntLen();
int datasize = 0;
int dataSize = 0;
for(int i=0; i<records.size(); i++) {
LinearHashEntry record = (LinearHashEntry) records.get(i);
// TODO index: just add the hash if the key is too large
datasize += dummy.getValueLen(record.key);
dataSize += dummy.getValueLen(record.key);
size += 2 * dummy.getIntLen();
}
if(size + datasize >= index.getBucketSize()) {
if(size + dataSize >= index.getBucketSize()) {
writePos = true;
return size;
} else {
writePos = false;
return size + datasize;
return size + dataSize;
}
}
......
......@@ -262,7 +262,7 @@ public class LinearHashIndex extends Index implements RecordReader {
// (and it would be an error to set next to -1)
moveOut(session, foreign, storeIn);
if(Constants.CHECK && getBucket(foreign).getNextBucket() != -1) {
throw Message.getInternalError("moveout "+foreign);
throw Message.getInternalError("moveOut "+foreign);
}
return;
}
......
......@@ -34,7 +34,7 @@ public class TreeIndex extends Index {
public void add(Session session, Row row) throws SQLException {
TreeNode i = new TreeNode(row);
TreeNode n = root, x = n;
boolean isleft = true;
boolean isLeft = true;
while (true) {
if (n == null) {
if (x == null) {
......@@ -42,7 +42,7 @@ public class TreeIndex extends Index {
rowCount++;
return;
}
set(x, isleft, i);
set(x, isLeft, i);
break;
}
Row r = n.row;
......@@ -55,17 +55,17 @@ public class TreeIndex extends Index {
}
compare = compareKeys(row, r);
}
isleft = compare < 0;
isLeft = compare < 0;
x = n;
n = child(x, isleft);
n = child(x, isLeft);
}
balance(x, isleft);
balance(x, isLeft);
rowCount++;
}
private void balance(TreeNode x, boolean isleft) {
private void balance(TreeNode x, boolean isLeft) {
while (true) {
int sign = isleft ? 1 : -1;
int sign = isLeft ? 1 : -1;
switch (x.balance * sign) {
case 1 :
x.balance = 0;
......@@ -74,20 +74,20 @@ public class TreeIndex extends Index {
x.balance = -sign;
break;
case -1 :
TreeNode l = child(x, isleft);
TreeNode l = child(x, isLeft);
if (l.balance == -sign) {
replace(x, l);
set(x, isleft, child(l, !isleft));
set(l, !isleft, x);
set(x, isLeft, child(l, !isLeft));
set(l, !isLeft, x);
x.balance = 0;
l.balance = 0;
} else {
TreeNode r = child(l, !isleft);
TreeNode r = child(l, !isLeft);
replace(x, r);
set(l, !isleft, child(r, isleft));
set(r, isleft, l);
set(x, isleft, child(r, !isleft));
set(r, !isleft, x);
set(l, !isLeft, child(r, isLeft));
set(r, isLeft, l);
set(x, isLeft, child(r, !isLeft));
set(r, !isLeft, x);
int rb = r.balance;
x.balance = (rb == -sign) ? sign : 0;
l.balance = (rb == sign) ? -sign : 0;
......@@ -98,13 +98,13 @@ public class TreeIndex extends Index {
if (x == root) {
return;
}
isleft = x.isFromLeft();
isLeft = x.isFromLeft();
x = x.parent;
}
}
private TreeNode child(TreeNode x, boolean isleft) {
return isleft ? x.left : x.right;
private TreeNode child(TreeNode x, boolean isLeft) {
return isLeft ? x.left : x.right;
}
private void replace(TreeNode x, TreeNode n) {
......@@ -198,12 +198,12 @@ public class TreeIndex extends Index {
}
rowCount--;
boolean isleft = x.isFromLeft();
boolean isLeft = x.isFromLeft();
replace(x, n);
n = x.parent;
while (n != null) {
x = n;
int sign = isleft ? 1 : -1;
int sign = isLeft ? 1 : -1;
switch (x.balance * sign) {
case -1 :
x.balance = 0;
......@@ -212,12 +212,12 @@ public class TreeIndex extends Index {
x.balance = sign;
return;
case 1 :
TreeNode r = child(x, !isleft);
TreeNode r = child(x, !isLeft);
int b = r.balance;
if (b * sign >= 0) {
replace(x, r);
set(x, !isleft, child(r, isleft));
set(r, isleft, x);
set(x, !isLeft, child(r, isLeft));
set(r, isLeft, x);
if (b == 0) {
x.balance = sign;
r.balance = -sign;
......@@ -227,20 +227,20 @@ public class TreeIndex extends Index {
r.balance = 0;
x = r;
} else {
TreeNode l = child(r, isleft);
TreeNode l = child(r, isLeft);
replace(x, l);
b = l.balance;
set(r, isleft, child(l, !isleft));
set(l, !isleft, r);
set(x, !isleft, child(l, isleft));
set(l, isleft, x);
set(r, isLeft, child(l, !isLeft));
set(l, !isLeft, r);
set(x, !isLeft, child(l, isLeft));
set(l, isLeft, x);
x.balance = (b == sign) ? -sign : 0;
r.balance = (b == -sign) ? sign : 0;
l.balance = 0;
x = l;
}
}
isleft = x.isFromLeft();
isLeft = x.isFromLeft();
n = x.parent;
}
}
......
......@@ -149,8 +149,10 @@ public class ViewIndex extends Index {
if(lastResult != null && canReuse) {
if(query.sameResultAsLast(session, params, lastParameters, lastEvaluated)) {
lastResult = lastResult.createShallowCopy(session);
lastResult.reset();
return new ViewCursor(table, lastResult);
if(lastResult != null) {
lastResult.reset();
return new ViewCursor(table, lastResult);
}
}
}
}
......
......@@ -54,7 +54,7 @@ import java.sql.SQLClientInfoException;
* Represents a connection (session) to a database.
*/
public class JdbcConnection extends TraceObject implements Connection {
// TODO test: check if enough sychronization on jdbc objects
// TODO test: check if enough synchronization on jdbc objects
// TODO feature auto-reconnect on lost connection!
private String url;
......@@ -272,11 +272,11 @@ public class JdbcConnection extends TraceObject implements Connection {
}
/**
* Switches autocommit on or off. Calling this function does not commit the
* Switches auto commit on or off. Calling this function does not commit the
* current transaction.
*
* @param autoCommit
* true for autocommit on, false for off
* true for auto commit on, false for off
* @throws SQLException
* if the connection is closed
*/
......@@ -299,7 +299,7 @@ public class JdbcConnection extends TraceObject implements Connection {
}
/**
* Gets the current setting for autocommit.
* Gets the current setting for auto commit.
*
* @return true for on, false for off
* @throws SQLException
......@@ -319,14 +319,14 @@ public class JdbcConnection extends TraceObject implements Connection {
getAutoCommit = prepareCommand("CALL AUTOCOMMIT()", getAutoCommit);
ResultInterface result = getAutoCommit.executeQuery(0, false);
result.next();
boolean autocommit = result.currentRow()[0].getBoolean().booleanValue();
boolean autoCommit = result.currentRow()[0].getBoolean().booleanValue();
result.close();
return autocommit;
return autoCommit;
}
/**
* Commits the current transaction. This call has only an effect if
* autocommit is switched off.
* auto commit is switched off.
*
* @throws SQLException
* if the connection is closed
......@@ -344,7 +344,7 @@ public class JdbcConnection extends TraceObject implements Connection {
/**
* Rolls back the current transaction. This call has only an effect if
* autocommit is switched off.
* auto commit is switched off.
*
* @throws SQLException
* if the connection is closed
......@@ -1117,25 +1117,25 @@ public class JdbcConnection extends TraceObject implements Connection {
i++;
checkRunOver(i, len, sql);
}
int repl = 0;
int remove = 0;
if (found(sql, start, "fn")) {
repl = 2;
remove = 2;
} else if (found(sql, start, "escape")) {
break;
} else if (found(sql, start, "call")) {
break;
} else if (found(sql, start, "oj")) {
repl = 2;
remove = 2;
} else if (found(sql, start, "ts")) {
repl = 2;
remove = 2;
} else if (found(sql, start, "t")) {
repl = 1;
remove = 1;
} else if (found(sql, start, "d")) {
repl = 1;
remove = 1;
} else if (found(sql, start, "params")) {
repl = 1;
remove = "params".length();
}
for (i = start; repl > 0; i++, repl--) {
for (i = start; remove > 0; i++, remove--) {
chars[i] = ' ';
}
break;
......
......@@ -1572,7 +1572,7 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
}
/**
* Returns whether refererential integrity is supported.
* Returns whether referential integrity is supported.
*
* @return true
*/
......@@ -1872,7 +1872,7 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
}
/**
* Returns whether open result sets accross commits are supported.
* Returns whether open result sets across commits are supported.
*
* @return false
*/
......@@ -1882,7 +1882,7 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
}
/**
* Returns whether open result sets accross rollback are supported.
* Returns whether open result sets across rollback are supported.
*
* @return false
*/
......@@ -1892,7 +1892,7 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
}
/**
* Returns whether open statements accross commit are supported.
* Returns whether open statements across commit are supported.
*
* @return true
*/
......@@ -1902,7 +1902,7 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
}
/**
* Returns whether open statements accross rollback are supported.
* Returns whether open statements across rollback are supported.
*
* @return true
*/
......@@ -1974,7 +1974,7 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
/**
* Returns whether a specific result set type is supported.
* ResultSet.TYPE_SCROLL_SENSITIVE is notsupported.
* ResultSet.TYPE_SCROLL_SENSITIVE is not supported.
*
* @return true for all types except ResultSet.TYPE_FORWARD_ONLY
*/
......@@ -1985,7 +1985,7 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
/**
* Returns whether a specific result set concurrency is supported.
* ResultSet.TYPE_SCROLL_SENSITIVE is notsupported.
* ResultSet.TYPE_SCROLL_SENSITIVE is not supported.
*
* @return true if the type is not ResultSet.TYPE_SCROLL_SENSITIVE
*/
......@@ -2053,7 +2053,7 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
}
/**
* Returns whether updates are dectected.
* Returns whether updates are detected.
* @return false
*/
public boolean updatesAreDetected(int type) {
......@@ -2620,7 +2620,7 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
}
/**
* Returns whether an exception while autocommit is on closes all result sets.
* Returns whether an exception while auto commit is on closes all result sets.
* @return false
*/
public boolean autoCommitFailureClosesAllResultSets() throws SQLException {
......
......@@ -103,7 +103,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
* another result set exists for this statement, this will be closed (even if this statement fails).
*
* If the statement is a create or drop and does not throw an exception, the current transaction (if any) is
* committed after executing the statement. If autocommit is on, this statement will be committed.
* committed after executing the statement. If auto commit is on, this statement will be committed.
*
* @return the update count (number of row affected by an insert, update or delete, or 0 if no rows or the statement
* was a create, drop, commit or rollback)
......@@ -134,7 +134,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
/**
* Executes an arbitrary statement. If another result set exists for this statement, this will be closed (even if
* this statement fails). If autocommit is on, and the statement is not a select, this statement will be committed.
* this statement fails). If auto commit is on, and the statement is not a select, this statement will be committed.
*
* @return true if a result set is available, false if not
* @throws SQLException if this object is closed or invalid
......@@ -251,7 +251,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
* Sets a parameter to null.
*
* @param parameterIndex the parameter index (1, 2, ...)
* @param sqlType the data type (Types.xxx)
* @param sqlType the data type (Types.x)
* @throws SQLException if this object is closed
*/
public void setNull(int parameterIndex, int sqlType) throws SQLException {
......@@ -658,7 +658,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
* Sets a parameter to null.
*
* @param parameterIndex the parameter index (1, 2, ...)
* @param sqlType the data type (Types.xxx)
* @param sqlType the data type (Types.x)
* @param typeName this parameter is ignored
* @throws SQLException if this object is closed
*/
......@@ -998,7 +998,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
/**
* Executes the batch.
*
* @return the array of updatecounts
* @return the array of update counts
*/
public int[] executeBatch() throws SQLException {
try {
......@@ -1037,9 +1037,9 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
}
batchParameters = null;
if (error) {
JdbcBatchUpdateException bue = new JdbcBatchUpdateException(next, result);
bue.setNextException(next);
throw bue;
JdbcBatchUpdateException e = new JdbcBatchUpdateException(next, result);
e.setNextException(next);
throw e;
}
return result;
} catch(Throwable e) {
......
......@@ -59,7 +59,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
/**
* Moves the cursor to the next row of the result set.
*
* @return true if successfull, false if there are no more rows
* @return true if successful, false if there are no more rows
*/
public boolean next() throws SQLException {
try {
......@@ -393,7 +393,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
}
/**
* Returns a column value as a Java object. For BINARY data, the data is deserialized into a Java Object.
* Returns a column value as a Java object. For BINARY data, the data is de-serialized into a Java Object.
*
* @param columnIndex (1,2,...)
* @return the value or null
......@@ -415,7 +415,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
}
/**
* Returns a column value as a Java object. For BINARY data, the data is deserialized into a Java Object.
* Returns a column value as a Java object. For BINARY data, the data is de-serialized into a Java Object.
*
* @param columnName the name of the column label
* @return the value or null
......@@ -2253,7 +2253,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
/**
* [Not supported] Gets the cursor name if it was defined. This feature is superseded by
* updateXXX methods. This method throws a SQLException because cursor names are not supported.
* updateX methods. This method throws a SQLException because cursor names are not supported.
*/
public String getCursorName() throws SQLException {
try {
......@@ -2294,8 +2294,8 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
try {
debugCodeCall("getConcurrency");
checkClosed();
UpdatableRow upd = new UpdatableRow(conn, result, session);
return upd.isUpdatable() ? ResultSet.CONCUR_UPDATABLE : ResultSet.CONCUR_READ_ONLY;
UpdatableRow row = new UpdatableRow(conn, result, session);
return row.isUpdatable() ? ResultSet.CONCUR_UPDATABLE : ResultSet.CONCUR_READ_ONLY;
} catch(Throwable e) {
throw logAndConvert(e);
}
......@@ -2783,11 +2783,11 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
}
private UpdatableRow getUpdatableRow() throws SQLException {
UpdatableRow upd = new UpdatableRow(conn, result, session);
if(!upd.isUpdatable()) {
UpdatableRow row = new UpdatableRow(conn, result, session);
if(!row.isUpdatable()) {
throw Message.getSQLException(Message.NOT_ON_UPDATABLE_ROW);
}
return upd;
return row;
}
int getColumnIndex(String columnName) throws SQLException {
......
......@@ -85,7 +85,7 @@ public class JdbcStatement extends TraceObject implements Statement {
*
* If the statement is a create or drop and does not throw an exception,
* the current transaction (if any) is committed after executing the statement.
* If autocommit is on, this statement will be committed.
* If auto commit is on, this statement will be committed.
*
* @param sql the SQL statement
* @return the update count (number of row affected by an insert,
......@@ -125,7 +125,7 @@ public class JdbcStatement extends TraceObject implements Statement {
*
* If the statement is a create or drop and does not throw an exception,
* the current transaction (if any) is committed after executing the statement.
* If autocommit is on, and the statement is not a select, this statement will be committed.
* If auto commit is on, and the statement is not a select, this statement will be committed.
*
* @return true if a result set is available, false if not
*/
......@@ -585,7 +585,7 @@ public class JdbcStatement extends TraceObject implements Statement {
/**
* Executes the batch.
*
* @return the array of updatecounts
* @return the array of update counts
*/
public int[] executeBatch() throws SQLException {
try {
......
......@@ -70,14 +70,17 @@ implements XAConnection, XAResource, JdbcConnectionListener
Properties info = new Properties();
info.setProperty("user", user);
info.setProperty("password", password);
conn = new JdbcConnection(url, info);
conn = new JdbcConnection(url, info);
conn.setJdbcConnectionListener(this);
return conn;
}
public void addConnectionEventListener(ConnectionEventListener listener) {
debugCode("addConnectionEventListener(listener)");
listeners.add(listener);
conn.setJdbcConnectionListener(this);
if(conn != null) {
conn.setJdbcConnectionListener(this);
}
}
public void removeConnectionEventListener(ConnectionEventListener listener) {
......@@ -238,7 +241,7 @@ implements XAConnection, XAResource, JdbcConnectionListener
buff.append(xid.getFormatId());
buff.append(",bq:");
buff.append(ByteUtils.convertBytesToString(xid.getBranchQualifier()));
buff.append(",gxid:");
buff.append(",gx:");
buff.append(ByteUtils.convertBytesToString(xid.getGlobalTransactionId()));
buff.append(",c:");
buff.append(xid.getClass().getName());
......
......@@ -23,7 +23,7 @@ public class Message {
private static final Properties MESSAGES = new Properties();
static {
// TODO multilanguage messages
// TODO multi language messages
// String language = Locale.getDefault().getLanguage();
try {
byte[] messages = Resources.get("/org/h2/res/messages.properties");
......@@ -37,16 +37,14 @@ public class Message {
/**
* Gets the SQL Exception object for a specific SQLState. Supported
* sqlstates are:
* SQL states are:
*
* @param sqlstate -
* the SQL State
* @param param -
* the parameter of the message
* @param sqlState - the SQL State
* @param param - the parameter of the message
* @return the SQLException object
*/
public static JdbcSQLException getSQLException(int sqlstate, String p1) {
return getSQLException(sqlstate, new String[] { p1 }, null);
public static JdbcSQLException getSQLException(int sqlState, String p1) {
return getSQLException(sqlState, new String[] { p1 }, null);
}
public static String translate(String key, String[] param) {
......@@ -360,8 +358,8 @@ public class Message {
if(e instanceof SQLException) {
return (SQLException)e;
} else if(e instanceof InvocationTargetException) {
InvocationTargetException ite = (InvocationTargetException)e;
Throwable t = ite.getTargetException();
InvocationTargetException te = (InvocationTargetException)e;
Throwable t = te.getTargetException();
if(t instanceof SQLException) {
return (SQLException)t;
}
......
......@@ -67,8 +67,8 @@ MERGE INTO tableName [(columnName [,...])] [KEY(columnName [,...])]
","
Updates the row if it exists, and if the row does not exist, inserts a new row.
If the key columns are not specified, the primary key columns are used to find the row.
This command is sometimes called 'UPSERT' as it UPdates a row if it exists,
or inSERTS the row if it does not yet exist.
This command is sometimes called 'UPSERT' as it updates a row if it exists,
or inserts the row if it does not yet exist.
If more than one row per new row is affected, an exception is thrown.
","
MERGE INTO TEST KEY(ID) VALUES(2, 'World')
......@@ -122,7 +122,7 @@ ALTER SEQUENCE sequenceName
","
Changes the next value and / or the increment of a sequence.
","
ALTER SEQUENCE SEQID RESTART WITH 1000
ALTER SEQUENCE SEQ_ID RESTART WITH 1000
"
"Commands (DDL)","ALTER TABLE ADD","
......@@ -197,8 +197,8 @@ ALTER TABLE TEST ALTER COLUMN NAME SET DEFAULT ''
ALTER TABLE tableName ALTER COLUMN columnName
SET NOT NULL
","
Sets a column to not allow NULL values.
This is not possible if there are any null values in the table.
Sets a column to not allow NULL.
This is not possible if there are any rows with NULL in this column.
","
ALTER TABLE TEST ALTER COLUMN NAME SET NOT NULL
"
......@@ -207,7 +207,7 @@ ALTER TABLE TEST ALTER COLUMN NAME SET NOT NULL
ALTER TABLE tableName ALTER COLUMN columnName
SET NULL
","
Sets a column to allow NULL values.
Sets a column to allow NULL.
This is not possible if the column is part of a primary key or multi-column hash index.
If there are single column indexes on this column, they are dropped.
","
......@@ -235,7 +235,7 @@ ALTER TABLE tableName RENAME TO newName
","
Renames a table.
","
ALTER TABLE TEST RENAME TO MYDATA
ALTER TABLE TEST RENAME TO MY_DATA
"
"Commands (DDL)","ALTER USER ADMIN","
......@@ -331,7 +331,7 @@ CREATE DOMAIN [IF NOT EXISTS] newDomainName AS dataType
[CHECK condition]
","
Creates a new data type (domain).
The check condition must evaluate to true or to NULL (to prevent NULL values, use NOT NULL).
The check condition must evaluate to true or to NULL (to prevent NULL, use NOT NULL).
In the condition, the term VALUE refers to the value being tested.
","
CREATE DOMAIN EMAIL AS VARCHAR(255) CHECK (POSITION('@', VALUE) > 1)
......@@ -383,7 +383,7 @@ CREATE SEQUENCE [IF NOT EXISTS] newSequenceName
","
Creates a new sequence. The data type of a sequence is BIGINT.
","
CREATE SEQUENCE SEQID
CREATE SEQUENCE SEQ_ID
"
"Commands (DDL)","CREATE TABLE","
......@@ -486,7 +486,7 @@ DROP SEQUENCE [IF EXISTS] sequenceName
","
Drops a sequence.
","
DROP SEQUENCE SEQID
DROP SEQUENCE SEQ_ID
"
"Commands (DDL)","DROP SCHEMA","
DROP SCHEMA [IF EXISTS] schemaName
......@@ -679,7 +679,7 @@ SET ASSERT 0
"Commands (Other)","SET AUTOCOMMIT","
SET AUTOCOMMIT {TRUE | ON | FALSE | OFF}
","
Switches autocommit on or off.
Switches auto commit on or off.
","
SET AUTOCOMMIT OFF
"
......@@ -726,7 +726,7 @@ SET COLLATION ENGLISH
"Commands (Other)","SET COMPRESS_LOB","
SET COMPRESS_LOB {NO|LZF|DEFLATE}
","
Sets the compression algorithm for BLOBs and CLOBs.
Sets the compression algorithm for BLOB and CLOB data.
Compression is usually slower, but needs less memory.
This setting is persistent.
Admin rights are required to execute this command.
......@@ -930,7 +930,7 @@ SET PASSWORD string
Changes the password of the current user.
The password must be in single quotes. It is case sensitive and can contain spaces.
","
SET PASSWORD 'stzri!.5'
SET PASSWORD 'abcstzri!.5'
"
"Commands (Other)","SET SALT HASH","
......@@ -1041,7 +1041,7 @@ CHECK expression
| referentialConstraint}
","
Defines a constraint.
The check condition must evaluate to true or to NULL (to prevent NULL values, use NOT NULL).
The check condition must evaluate to true or to NULL (to prevent NULL, use NOT NULL).
","
PRIMARY KEY(ID, NAME)
"
......@@ -2325,7 +2325,7 @@ YEAR(CREATED)
"Functions (System)","AUTOCOMMIT","
AUTOCOMMIT(): boolean
","
Returns true if autocommit is switched on for this session.
Returns true if auto commit is switched on for this session.
","
AUTOCOMMIT()
"
......@@ -2368,7 +2368,7 @@ Returns the current (last) value of the sequence.
If the schema name is not set, the current schema is used.
If the schema name is not set, the sequence name is converted to uppercase (for compatibility).
","
CURRVAL('TESTSEQ')
CURRVAL('TEST_SEQ')
"
"Functions (System)","CSVREAD","
......@@ -2471,7 +2471,7 @@ Returns the next value of the sequence.
If the schema name is not set, the current schema is used.
If the schema name is not set, the sequence name is converted to uppercase (for compatibility).
","
NEXTVAL('TESTSEQ')
NEXTVAL('TEST_SEQ')
"
"Functions (System)","NULLIF","
......
......@@ -26,7 +26,7 @@
90003=Hexadecimal string with odd number of characters: {0}
90004=Hexadecimal string contains non hex character: {0}
90005=Value too long for column {0}
90006=Null value not allowed for column {0}
90006=Null not allowed for column {0}
90007=The object is already closed
90008=Invalid value {0} for parameter {1}
90009=Cannot parse date constant {0}
......@@ -116,7 +116,7 @@
90093=Clustering error - database currently runs in standalone mode
90094=Clustering error - database currently runs in cluster mode, server list: {0}
90095=String format error: {0}
90096=Not enought rights for object {0}
90096=Not enough rights for object {0}
90097=The database is read only
90098=The database has been closed
90099=Error setting database event listener {0}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论