close

Filter

loading table of contents...

Deployment Manual / Version 2512.1

Table Of Contents

3.2.5 Properties for the Database Dialect

The Content Server and the Workflow Server preset the following properties with values that suit the database they connect to. Values that you set yourself take precedence. The listed defaults apply only if the preset for your database doesn't set the property.

db.connection.init-max-recursion-depth
Type String
Description

Statement to execute to possibly adjust a session variable for a maximum recursion depth for SQL recursive common table expressions (CTEs). The statement will get one integer parameter, that is the db.max-recursion-depth. The statement is only executed if the recursion depth is set to a value equal to or greater than 0 (zero). If possible, SELECT specific adaptations are preferred over the session scope variable, such as for MySQL using optimizer hints.

db.escape-backslash
Type Boolean
Default false
Description

Whether backslashes must be escaped in string constants or not.

db.function.has-string-functions
Type Boolean
Default false
Description

Signals, if the database supports string functions such as LOWER or UPPER. If set to true, the value of lowercase must represent a valid database function to transform a string to lowercase.

db.function.lowercase
Type String
Default LOWER
Description

The function to transform a string to lowercase. This is only used if has-string-functions is set to true.

db.function.max-ignores-index
Type Boolean
Default false
Description

If operations such as MAX (and also MIN) are known to ignore the index of the maxed column, set this to true. Database behavior may be analyzed using EXPLAIN statements, to see, if an available index is respected or not. Defaults to false and is preferred to stick to false unless you observe issues, for example for operations on the Changelog table.

db.function.modulo
Type String
Default MOD
Description

What operator or operation to use for modulo. Set modulo-infix accordingly.

db.function.modulo-infix
Type Boolean
Default false
Description

If the modulo is executed in infix notation (thus, an operator), set this to true. The default is false, which means that the configured modulo is used as an operation (prefix/polish notation). The latter typically applies to MOD, while the former typically applies to %.

db.max-recursion-depth
Type Integer
Default 32767
Description

The maximum recursion depth for SQL recursive common table expressions (CTEs), or -1 to not set a limit. Only used for MySQL (as cte_max_recursion_depth optimizer hint). Recursive CTEs are used to evaluate content query BELOW clauses.

db.schema.alter-column-type
Type String
Description

Statement to change a table column's type. The statement gets three parameters: {0} is the table to change, {1} is the column to change, {2} is the new type.

db.schema.casesensitive
Type Boolean
Default false
Description

If to keep the case of tables, views, indices, columns as given within the statements. If set to true, the state of uppercase is ignored.

db.schema.constraint.foreign-key.named
Type Boolean
Default false
Description

Signals, if the database supports the concept of named foreign key constraints. It is recommended to set this to true as it provides better error messages in case of constraint violations.

db.schema.constraint.foreign-key.needs-columns
Type Boolean
Default false
Description

Signals, if the database requires a fully specified foreign key constraint reference including a referenced column. Most databases deduce the referenced column from the primary key of the referenced table. If this is not the case, set this to true.

db.schema.constraint.primary-key.named
Type Boolean
Default false
Description

Signals, if the database supports the concept of named primary key constraints. While some databases do support it, others only tolerate it, while again others either fail or raise a warning if used.

db.schema.has-named-constraints
Type Boolean
Deprecation

This property has been deprecated and will be removed in a future version.

Use db.schema.constraint.foreign-key.named instead.

db.schema.member-name-length
Type Integer
Default 233
Description

Maximum length (including) of a member's name, thus of a user or group. The value must not exceed the length of the corresponding column in the database schema for the CmUsers table, for example.

db.schema.name-length
Type Integer
Default 56
Description

The maximum length of a name (like table names). Names greater than this length are considered invalid (thus, less than or equal to this are considered valid). Names violating this restriction will raise an InvalidNameException. Check your database specification for corresponding length restrictions. The restriction limits the length of content-type names and property names.

db.schema.needs-columns-for-foreign-key
Type Boolean
Deprecation

This property has been deprecated and will be removed in a future version.

Use db.schema.constraint.foreign-key.needs-columns instead.

db.schema.resource-name-length
Type Integer
Default 233
Description

Maximum length (including) of a resource name, thus a folder or document name. The value must not exceed the length of the corresponding column in the database schema for the Resources table.

db.schema.uppercase
Type Boolean
Default true
Description

If to switch names of tables, views, indices, columns to uppercase. Setting is ignored, if casesensitive is set to true.

db.select-from-subselect-named
Type Boolean
Default false
Description

Whether subselects in FROM clauses must be named as in SELECT ... FROM (SELECT ...) AS aName .... It is safe to set this to true also, if the database does not require but support named subselects (also known as 'subqueries').

db.type.bit
Type String
Description

Represents a type that is able to represent a Boolean state (on/off). Must be able to hold values as specified by bit-true and bit-false.

db.type.bit-convert
Type String
Description

Signals, if extra conversion should be applied when dealing with values, denoting a boolean value. Only value that triggers a different behavior is INTEGER (strict case).

db.type.bit-false
Type String
Description

The value to represent a false state for the bit type.

db.type.bit-true
Type String
Description

The value to represent a true state for the bit type.

db.type.integer
Type String
Description

Type capable to store integer values.

db.type.uuid
Type String
Description

Type capable/best-suited to store UUIDs.

db.type.varchar
Type String
Description

Type capable to store string values. Possibly adjust varchar-length-in-characters to match the database's understanding of the length parameter (if it represents characters or bytes).

db.type.varchar-length-in-characters
Type Boolean
Default false
Description

Signals, if the length of a varchar column should be regarded representing the number of characters (true) or the number of bytes (false).

Table 3.8. Database Dialect Properties


Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.