ModeThe compatibility modes. There is a fixed set of modes (for example PostgreSQL, MySQL). Each mode has different settings.
aliasColumnNameWhen enabled, aliased columns (as in SELECT ID AS I FROM TEST) return the
alias (I in this case) in ResultSetMetaData.getColumnName() and 'null' in
getTableName(). If disabled, the real column name (ID in this case) and
table name is returned.
allowAffinityKeyWhether AFFINITY KEY keywords are supported.
allowDB2TimestampFormatWhether DB2 TIMESTAMP formats are allowed.
allowEmptyInPredicateWhether IN predicate may have an empty value list.
allowEmptySchemaValuesAsDefaultSchemaIf {@code true} constructs like 'CREATE TABLE CATALOG..TABLE_NAME' are allowed,
the default schema is used.
allowPlusForStringConcatText can be concatenated using '+'.
allowUnrelatedOrderByExpressionsInDistinctQueriesIf {@code true} unrelated ORDER BY expression are allowed in DISTINCT
queries, if {@code false} they are disallowed.
alterTableExtensionsMySQLIf {@code true} some additional non-standard ALTER TABLE commands are allowed.
alterTableModifyColumnIf {@code true} non-standard ALTER TABLE MODIFY COLUMN is allowed.
charToBinaryInUtf8Convert (VAR)CHAR to VAR(BINARY) and vice versa with UTF-8 encoding instead of HEX.
convertOnlyToSmallerScaleWhen converting the scale of decimal data, the number is only converted
if the new scale is smaller than the current scale. Usually, the scale is
converted and 0s are added if required.
dateTimeValueWithinTransactionIf {@code true}, datetime value function return the same value within a
transaction, if {@code false} datetime value functions return the same
value within a command.
decimalSequencesIf {@code true} NEXT VALUE FOR SEQUENCE, CURRENT VALUE FOR SEQUENCE,
SEQUENCE.NEXTVAL, and SEQUENCE.CURRVAL return values with DECIMAL/NUMERIC
data type instead of BIGINT.
disallowedTypesAn optional Set of hidden/disallowed column types.
Certain DBMSs don't support all column types provided by H2, such as
"NUMBER" when using PostgreSQL mode.
discardWithTableHintsDiscard SQLServer table hints (e.g. "SELECT * FROM table WITH (NOLOCK)")
indexDefinitionInCreateTableCreating indexes in the CREATE TABLE statement is allowed using
INDEX(..) or KEY(..) .
Example: create table test(id int primary key, name varchar(255),
key idx_name(name)); insertOnConflictPostgreSQL style INSERT ... ON CONFLICT DO NOTHING.
isolationLevelInSelectOrInsertStatementcan set the isolation level using WITH {RR|RS|CS|UR}
logIsLogBase10The single-argument function LOG() uses base 10 instead of E.
nullConcatIsNullConcatenation with NULL results in NULL. Usually, NULL is treated as an
empty string if only one of the operands is NULL, and NULL is only
returned if both operands are NULL.
onDuplicateKeyUpdateMySQL style INSERT ... ON DUPLICATE KEY UPDATE ... and INSERT IGNORE.
padFixedLengthStringsWhether to right-pad fixed strings with spaces.
regexpReplaceBackslashReferencesThe function REGEXP_REPLACE() uses \ for back-references.
replaceIntoMySQL style REPLACE INTO.
serialColumnIsNotPKSERIAL and BIGSERIAL columns are not automatically primary keys.
squareBracketQuotedNamesIdentifiers may be quoted using square brackets as in [Test].
supportPoundSymbolForColumnNamesSupport the # for column names
supportedClientInfoPropertiesRegExPattern describing the keys the java.sql.Connection.setClientInfo()
method accepts.
swapConvertFunctionParametersSwap the parameters of the CONVERT function.
swapLogFunctionParametersSwap the parameters of LOG() function.
sysDummy1Support the pseudo-table SYSIBM.SYSDUMMY1.
systemColumnsThe system columns 'CTID' and 'OID' are supported.
treatEmptyStringsAsNullEmpty strings are treated like NULL values. Useful for Oracle emulation.
truncateTableRestartIdentityIf {@code true} TRUNCATE TABLE uses RESTART IDENTITY by default.
typeByNameMapCustom mappings from type names to data types.
uniqueIndexNullsHandlingDetermines how rows with {@code NULL} values in indexed columns are handled
in unique indexes.
useIdentityAsAutoIncrementUse "IDENTITY" as an alias for "auto_increment" (SQLServer style)
zeroExLiteralsAreBinaryStringsIf {@code true} {@code 0x}-prefixed numbers are parsed as binary string
literals, if {@code false} they are parsed as hexadecimal numeric values.
|