---
title: "SQL statement, type, timezone and cache parameters"
description: "CoraDB parameters that change SQL behavior (ansi_quotes, pipes_as_concat, ...), the time zone, and the query plan and result caches."
url: "https://www.coradb.ai/manual/admin/config_sql.html"
markdown_url: "https://www.coradb.ai/manual/markdown/admin/config_sql.md"
product: "CoraDB"
version: "1.0"
keywords: "coradb.conf, add_column_update_hard_default, alter_table_change_type_strict, allow_truncated_string, ansi_quotes, block_ddl_statement, block_nowhere_statement, compat_numeric_division_scale, create_table_reuseoid, cte_max_recursions, default_week_format, intl_check_input_string, group_concat_max_len"
---

# SQL statement, type, timezone and cache parameters

These parameters are set in **coradb.conf**. For how to set them, which ones can be changed while the server runs, and the full list of parameters, see [System parameters](https://www.coradb.ai/manual/admin/config.html).

## Statement/type-related parameters

The following are parameters related to SQL statements and data types supported by CoraDB. The type and value range for each parameter are as follows:

| Parameter name                  | Type   | Default   | Min   | Max        |
|---------------------------------|--------|-----------|-------|------------|
| [add_column_update_hard_default](https://www.coradb.ai/manual/admin/config_sql.html#add_column_update_hard_default) | bool   | no        |       |            |
| [alter_table_change_type_strict](https://www.coradb.ai/manual/admin/config_sql.html#alter_table_change_type_strict) | bool   | yes       |       |            |
| [allow_truncated_string](https://www.coradb.ai/manual/admin/config_sql.html#allow_truncated_string) | bool   | no        |       |            |
| [ansi_quotes](https://www.coradb.ai/manual/admin/config_sql.html#ansi_quotes) | bool   | yes       |       |            |
| [block_ddl_statement](https://www.coradb.ai/manual/admin/config_sql.html#block_ddl_statement) | bool   | no        |       |            |
| [block_nowhere_statement](https://www.coradb.ai/manual/admin/config_sql.html#block_nowhere_statement) | bool   | no        |       |            |
| [compat_numeric_division_scale](https://www.coradb.ai/manual/admin/config_sql.html#compat_numeric_division_scale) | bool   | no        |       |            |
| [create_table_reuseoid](https://www.coradb.ai/manual/admin/config_sql.html#create_table_reuseoid) | bool   | yes       |       |            |
| [cte_max_recursions](https://www.coradb.ai/manual/admin/config_sql.html#cte_max_recursions) | int    | 2,000     | 2     | 1,000,000  |
| [default_week_format](https://www.coradb.ai/manual/admin/config_sql.html#default_week_format) | int    | 0         |       |            |
| [group_concat_max_len](https://www.coradb.ai/manual/admin/config_sql.html#group_concat_max_len) | byte   | 1,024     | 4     | 33,554,432 |
| [intl_check_input_string](https://www.coradb.ai/manual/admin/config_sql.html#intl_check_input_string) | bool   | no        |       |            |
| [intl_collation](https://www.coradb.ai/manual/admin/config_sql.html#intl_collation) | string |           |       |            |
| [intl_date_lang](https://www.coradb.ai/manual/admin/config_sql.html#intl_date_lang) | string |           |       |            |
| [intl_number_lang](https://www.coradb.ai/manual/admin/config_sql.html#intl_number_lang) | string |           |       |            |
| [json_max_array_idx](https://www.coradb.ai/manual/admin/config_sql.html#json_max_array_idx) | int    | 65,536    | 1,024 | 1,048,576  |
| [no_backslash_escapes](https://www.coradb.ai/manual/admin/config_sql.html#no_backslash_escapes) | bool   | yes       |       |            |
| [only_full_group_by](https://www.coradb.ai/manual/admin/config_sql.html#only_full_group_by) | bool   | no        |       |            |
| [oracle_style_empty_string](https://www.coradb.ai/manual/admin/config_sql.html#oracle_style_empty_string) | bool   | no        |       |            |
| [pipes_as_concat](https://www.coradb.ai/manual/admin/config_sql.html#pipes_as_concat) | bool   | yes       |       |            |
| [plus_as_concat](https://www.coradb.ai/manual/admin/config_sql.html#plus_as_concat) | bool   | yes       |       |            |
| [require_like_escape_character](https://www.coradb.ai/manual/admin/config_sql.html#require_like_escape_character) | bool   | no        |       |            |
| [return_null_on_function_errors](https://www.coradb.ai/manual/admin/config_sql.html#return_null_on_function_errors) | bool   | no        |       |            |
| [string_max_size_bytes](https://www.coradb.ai/manual/admin/config_sql.html#string_max_size_bytes) | byte   | 1,048,576 | 64    | 33,554,432 |
| [unicode_input_normalization](https://www.coradb.ai/manual/admin/config_sql.html#unicode_input_normalization) | bool   | no        |       |            |
| [unicode_output_normalization](https://www.coradb.ai/manual/admin/config_sql.html#unicode_output_normalization) | bool   | no        |       |            |
| [update_use_attribute_references](https://www.coradb.ai/manual/admin/config_sql.html#update_use_attribute_references) | bool   | no        |       |            |

### add_column_update_hard_default

**add_column_update_hard_default** is a parameter to configure whether or not to provide the hard default value as the input value for a column when you add a new column to the **ALTER TABLE ... ADD COLUMN** clause.

When there is **NOT NULL** constraint and no **DEFAULT** constraint, if a value of this parameter is set to **yes**, the value of newly added column will be inserted as hard default value; if it is set to **no**, CoraDB returns an error. For the hard default for each type, see the [CHANGE/MODIFY clauses](https://www.coradb.ai/manual/sql/schema/table_stmt.html#changemodify-clauses) of the **ALTER TABLE** statement.

``` sql
SET SYSTEM PARAMETERS 'add_column_update_hard_default=yes';

CREATE TABLE tbl (i int);
INSERT INTO tbl VALUES (1),(2);
ALTER TABLE tbl ADD COLUMN j INT NOT NULL;

SELECT * FROM tbl;
```

``` text
i          j
=========================
1          0
2          0
```

``` sql
SET SYSTEM PARAMETERS 'add_column_update_hard_default=no';

CREATE TABLE tbl (i INT);
INSERT INTO tbl VALUES (1),(2);
ALTER TABLE tbl ADD COLUMN j INT NOT NULL;
```

``` text
ERROR: Cannot add NOT NULL constraint for attribute "j": there are existing NULL values for this attribute.
```

### alter_table_change_type_strict

**alter_table_change_type_strict** is a parameter to configure whether to allow the conversion of column values according to the type change, and the default value is **yes**. If a value for this parameter is set to **no**, the value may be changed when you change the column types or when you add **NOT NULL** constraints; if it is set to **yes**, the value does not change. For details, see CHANGE Clause in the [CHANGE/MODIFY clauses](https://www.coradb.ai/manual/sql/schema/table_stmt.html#changemodify-clauses).

### allow_truncated_string

**allow_truncated_string** is a parameter to configure whether to allow the truncation of string values according to the string manipulation operations used in insert or update query, and the default value is **no**. If the value for this parameter is set to **no**, the string value is not allowed to be truncated when you do operation for any string related to insert or update query; however the string related to select query may be truncated regardless of this configuration. If it is set to **yes**, the string value may be truncated regardless of the type of (INSERT/UPDATE/SELECT) query.

### ansi_quotes

**ansi_quotes** is a parameter used to enclose symbols and character string to handle identifiers. The default value is **yes**. If this parameter value is set to **yes**, double quotations are handled as identifier symbols and single quotations are handled as character string symbols. If it is set to **no**, both double and single quotations are handled as character string symbols.

### block_ddl_statement

**block_ddl_statement** is a parameter used to limit the execution of DDL (Data Definition Language) statements by the client. If the parameter is set to **no**, the given client is allowed to execute DDL statements. If it is set to **yes**, the client is not permitted to execute DDL statements. The default value is **no**.

### block_nowhere_statement

**block_nowhere_statement** is a parameter used to limit the execution of **UPDATE** / **DELETE** statements without a condition clause (**WHERE**) by the client. If the parameter is set to **no**, the given client is allowed to execute **UPDATE** / **DELETE** statements without a condition clause. If it is set to **yes**, the client is not permitted to execute **UPDATE** / **DELETE** statements without a condition clause. The default value is **no**.

### compat_numeric_division_scale

**compat_numeric_division_scale** is a parameter to configure the scale to be displayed in the result (quotient) of a division operation. If the parameter is set to **no**, the scale of the quotient is 9, if it is set to **yes**, the scale is determined by that of the operand. The default value is **no**.

### create_table_reuseoid

**create_table_reuseoid** is a parameter to specify whether to use the **REUSE_OID** or **DONT_REUSE_OID** option when creating a table without table option. If it is set to **yes**, the table is created with **REUSE_OID** option. The default value is **yes**.

For detail, see [REUSE_OID](https://www.coradb.ai/manual/sql/schema/table_stmt.html#reuse_oid) and [DONT_REUSE_OID](https://www.coradb.ai/manual/sql/schema/table_stmt.html#dont_reuse_oid) .

### cte_max_recursions

**cte_max_recursions** is a parameter to limit the maximum number of iterations when executing the recursive part of the CTE (Common Table Expressions) statement. This avoids infinite loop and potential issues produced by the size of temporary lists.

### default_week_format

**default_week_format** is a parameter to configure default value for the *mode* attribute of the [WEEK](https://www.coradb.ai/manual/sql/function/datetime_fn.html#week) function. The default value is **0**. For details, see [WEEK](https://www.coradb.ai/manual/sql/function/datetime_fn.html#week).

### intl_check_input_string

**intl_check_input_string** is a parameter to determine whether or not to check that string entered is correctly corresponded to character set used. The default value is **no**. If this value is **no** and character set is UTF-8 and incorrect data is enter which violate UTF-8 byte sequence, it can show abnormal behavior or database server and applications can be terminated abnormally. However, if it is guaranteed this problem does not happen, it has advantage in performance not to do it.

UTF-8 and EUC-KR can be checked; ISO-8859-1 is one-byte encoding so it does not have to be checked because every byte is valid.

### group_concat_max_len

**group_concat_max_len** is a parameter used to limit the return value size of the [GROUP_CONCAT](https://www.coradb.ai/manual/sql/function/analysis_fn.html#group_concat) function. You can set a unit as B, K, M, G or T, which stands for bytes, kilobytes(KB), megabytes(MB), gigabytes(GB) or terabytes(TB) respectively. If you omit the unit, bytes will be applied. The default value is **1,024**. The minimum value is 4 and the maximum value is 33,554,432 bytes.

This function is affected by **string_max_size_bytes** parameter; if the value of **group_concat_max_len** is greater than the value **string_max_size_bytes** and the result size of **GROUP_CONCAT** exceeds the value of **string_max_size_bytes**, an error occurs.

### intl_check_input_string

**intl_check_input_string** is a parameter to determine whether or not to check that string entered is correctly corresponded to character set used. The default value is **no**. If this value is no and character set is UTF-8 and incorrect data is enter which violate UTF-8 byte sequence, it can show abnormal behavior or database server and applications can be terminated abnormally. However, if it is guaranteed this problem does not happen, it has advantage in performance not to do it.

UTF-8 and EUC-KR can be checked; ISO-8859-1 is one-byte encoding so it does not have to be checked because every byte is valid.

### intl_collation

**intl_collation** is a parameter which specifies a collation name about a specific application client. Specifying this parameter is the same as changing a collation of application client by using "SET NAMES" statement. Specifying a collation includes a charset.

The following two statements behave the same.

``` sql
SET NAMES utf8;
SET SYSTEM PARAMETERS 'intl_collation=utf8_bin';
```

For an available value of **intl_collation**, see [Collation](https://www.coradb.ai/manual/sql/i18n_collation.html#collation-1).

### intl_date_lang

**intl_date_lang** is a parameter used to input/output the values of **TIME**, **DATE**, **DATETIME**, and **TIMESTAMP**. If language name is omitted, it specifies a locale format of string of localized calendar (month, weekday, and AM/PM).

The values allowed are as follows: Note that to use all values, locale library should be configured except built-in locale. For configuring locale, see [Locale setting](https://www.coradb.ai/manual/sql/i18n_locale.html#locale-setting).

| Language   | Locale name of language |
|------------|-------------------------|
| English    | en_US                   |
| German     | de_DE                   |
| Spanish    | es_ES                   |
| French     | fr_FR                   |
| Italian    | it_IT                   |
| Japanese   | ja_JP                   |
| Cambodian  | km_KH                   |
| Korean     | ko_KR                   |
| Turkish    | tr_TR                   |
| Vietnamese | vi_VN                   |
| Chinese    | zh_CN                   |
| Romanian   | ro_RO                   |

The function recognizing input string based on calendar format of specified language is as follows:

- [TO_DATE](https://www.coradb.ai/manual/sql/function/typecast_fn.html#to_date)
- [TO_TIME](https://www.coradb.ai/manual/sql/function/typecast_fn.html#to_time)
- [TO_DATETIME](https://www.coradb.ai/manual/sql/function/typecast_fn.html#to_datetime)
- [TO_TIMESTAMP](https://www.coradb.ai/manual/sql/function/typecast_fn.html#to_timestamp)
- [STR_TO_DATE](https://www.coradb.ai/manual/sql/function/typecast_fn.html#str_to_date)

The function outputting string based on calendar format of specified language is as follows:

- [TO_CHAR](https://www.coradb.ai/manual/sql/function/typecast_fn.html#fn-to_char)
- [DATE_FORMAT](https://www.coradb.ai/manual/sql/function/typecast_fn.html#date_format)
- [TIME_FORMAT](https://www.coradb.ai/manual/sql/function/typecast_fn.html#time_format)

### intl_number_lang

**intl_number_lang** is a parameter used to specify locale applied when numeric format is assigned to input/output string in the function where a string is converted to number or number is converted to string. A delimiter and decimal symbol are used for numeric localization. In general, a comma and period are used; however, it can be changeable based on locale. For example, while number 1000.12 is written as 1,000.12 in most locale, it is written as 1.000,12 in tr_TR locale.

The function recognizing input string based on calendar format of specified language is as follows:

- [TO_NUMBER](https://www.coradb.ai/manual/sql/function/typecast_fn.html#to_number)

The function outputting string based on calendar format of specified language is as follows:

- [FORMAT](https://www.coradb.ai/manual/sql/function/typecast_fn.html#format)
- [TO_CHAR](https://www.coradb.ai/manual/sql/function/typecast_fn.html#fn-to_char)

### json_max_array_idx

**json_max_array_idx** is a parameter used by JSON functions to set a limit on the size of arrays after changes.

If a very large index is fed to functions like **JSON_ARRAY_INSERT** by accident, the JSON document will occupy a lot of memory and disk space. Use this parameter to limit the risks.

The limit is not applied to arrays generated by parsing strings.

### no_backslash_escapes

**no_backslash_escapes** is a parameter to configure whether or not to use backslash (\\ as an escape character, and the default value is **yes**. If a value for this parameter is set to **no**, backslash (\\ will be used as an escape character; if it is set to **yes**, backslash (\\ will be used as a normal character. For example, if this value is set to **no**, "\n" means a newline character. For details, see [Escape special characters](https://www.coradb.ai/manual/sql/datatype_string.html#escape-special-characters).

### only_full_group_by

**only_full_group_by** is a parameter to configure whether or not to use extended syntax about using **GROUP BY** statement.

If this parameter value is set to **no**, an extended syntax is applied thus, a column that is not specified in the **GROUP BY** statement can be specified in the **SELECT** column list. If it is set to yes, a column that is only specified in the **GROUP BY** statement can be the **SELECT** column list.

The default value is **no**. Therefore, specify the **only_full_group_by** parameter value to **yes** to execute queries by SQL standards. Because the extended syntax is not applied in this case, an error below is displayed.

``` text
ERROR: Attributes exposed in aggregate queries must also appear in the group by clause.
```

### oracle_style_empty_string

**oracle_style_empty_string** is a parameter used to improve compatibility with other DBMS (Database Management Systems); it specifies to process empty string and **NULL** as the same value. The default is **no**. If the **oracle_style_empty_string** parameter is set to **no**, the character string is processed as a valid string; if it is set to **yes**, according to each function, the empty string is processed as **NULL** or **NULL** is processed as the empty string.

> **Note:**
> Other functions except below functions are not affected by **oracle_style_empty_string** parameter.
>
> - Functions processing an empty string and NULL into NULL when **oracle_style_empty_string=yes**.
>   - [ASCII](https://www.coradb.ai/manual/sql/function/string_fn.html#ascii)
>   - [CONCAT_WS](https://www.coradb.ai/manual/sql/function/string_fn.html#concat_ws)
>   - [ELT](https://www.coradb.ai/manual/sql/function/string_fn.html#elt)
>   - [FIELD](https://www.coradb.ai/manual/sql/function/string_fn.html#field)
>   - [FIND_IN_SET](https://www.coradb.ai/manual/sql/function/string_fn.html#find_in_set)
>   - [FROM_BASE64](https://www.coradb.ai/manual/sql/function/string_fn.html#from_base64)
>   - [INSERT](https://www.coradb.ai/manual/sql/function/string_fn.html#insert)
>   - [INSTR](https://www.coradb.ai/manual/sql/function/string_fn.html#instr)
>   - [LOWER](https://www.coradb.ai/manual/sql/function/string_fn.html#fn-lower)
>   - [LEFT](https://www.coradb.ai/manual/sql/function/string_fn.html#left)
>   - [LOCATE](https://www.coradb.ai/manual/sql/function/string_fn.html#locate)
>   - [LPAD](https://www.coradb.ai/manual/sql/function/string_fn.html#lpad)
>   - [LTRIM](https://www.coradb.ai/manual/sql/function/string_fn.html#ltrim)
>   - [MID](https://www.coradb.ai/manual/sql/function/string_fn.html#mid)
>   - [POSITION](https://www.coradb.ai/manual/sql/function/string_fn.html#position)
>   - [REPEAT](https://www.coradb.ai/manual/sql/function/string_fn.html#repeat)
>   - [REVERSE](https://www.coradb.ai/manual/sql/function/string_fn.html#reverse)
>   - [RIGHT](https://www.coradb.ai/manual/sql/function/string_fn.html#right)
>   - [RPAD](https://www.coradb.ai/manual/sql/function/string_fn.html#rpad)
>   - [RTRIM](https://www.coradb.ai/manual/sql/function/string_fn.html#rtrim)
>   - [SPACE](https://www.coradb.ai/manual/sql/function/string_fn.html#space)
>   - [STRCMP](https://www.coradb.ai/manual/sql/function/string_fn.html#strcmp)
>   - [SUBSTR](https://www.coradb.ai/manual/sql/function/string_fn.html#substr)
>   - [SUBSTRING](https://www.coradb.ai/manual/sql/function/string_fn.html#substring)
>   - [SUBSTRING_INDEX](https://www.coradb.ai/manual/sql/function/string_fn.html#substring_index)
>   - [TO_BASE64](https://www.coradb.ai/manual/sql/function/string_fn.html#to_base64)
>   - [TRANSLATE](https://www.coradb.ai/manual/sql/function/string_fn.html#translate)
>   - [TRIM](https://www.coradb.ai/manual/sql/function/string_fn.html#trim)
>   - [UPPER](https://www.coradb.ai/manual/sql/function/string_fn.html#fn-upper)
> - Functions processing an empty string and NULL into an empty string when **oracle_style_empty_string=yes**.
>   - [CONCAT](https://www.coradb.ai/manual/sql/function/string_fn.html#concat)
>   - [REPLACE](https://www.coradb.ai/manual/sql/function/string_fn.html#replace)


### pipes_as_concat

**pipes_as_concat** is a parameter to configure how to handle a double pipe symbol. The default value is **yes**. If this parameter value is set to **yes**, a double pipe symbol is handled as a concatenation operator if **no**, it is handled as the **OR** operator.

### plus_as_concat

**plus_as_concat** is a parameter to configure the plus (+) operator, and the default value is **yes**. It is set in `coradb.conf`; it cannot be changed with **SET SYSTEM PARAMETERS**. If a value for this parameter is set to **yes**, the plus (+) operator will be interpreted as a concatenation operator; if it is set to **no**, the operator will be interpreted as a numeric operator.

``` sql
-- plus_as_concat = yes
SELECT '1'+'1';
```

``` text
'1'+'1'
======================
'11'  
```

``` sql
SELECT '1'+'a';
```

``` text
'1'+'a'
======================
'1a'
```

``` sql
-- plus_as_concat = no
SELECT '1'+'1';
```

``` text
'1'+'1'
==========================
2.0
```

``` sql
SELECT '1'+'a';
```

``` text
ERROR: Cannot coerce 'a' to type double.
```

### require_like_escape_character

**require_like_escape_character** is parameter to configure whether or not to use an ESCAPE character in the **LIKE** clause, and the default value is **no**. If a value for this parameter is set to **yes** and a value for **no_backslash_escapes** is set to **no**, backslash (\\ will be used as an ESCAPE character in the strings of the LIKE clause, otherwise you should specify an ESCAPE character by using the **LIKE ... ESCAPE** clause. For details, see [LIKE](https://www.coradb.ai/manual/sql/function/condition_op.html#like).

### return_null_on_function_errors

**return_null_on_function_errors** is a parameter used to define actions when errors occur in some SQL functions, and the default value is **no**. If a value for this parameter is set to **yes**, **NULL** is returned; if it is set to **no**, an error is returned when the error occurs in functions, and the related message is displayed.

The following SQL functions are affected by this system parameter.

**Date/time functions**

- [ADDDATE](https://www.coradb.ai/manual/sql/function/datetime_fn.html#fn-adddate)
- [ADDTIME](https://www.coradb.ai/manual/sql/function/datetime_fn.html#addtime)
- [DATEDIFF](https://www.coradb.ai/manual/sql/function/datetime_fn.html#datediff)
- [DAY](https://www.coradb.ai/manual/sql/function/datetime_fn.html#fn-day)
- [DAYOFMONTH](https://www.coradb.ai/manual/sql/function/datetime_fn.html#fn-dayofmonth)
- [DAYOFWEEK](https://www.coradb.ai/manual/sql/function/datetime_fn.html#dayofweek)
- [DAYOFYEAR](https://www.coradb.ai/manual/sql/function/datetime_fn.html#dayofyear)
- [FROM_DAYS](https://www.coradb.ai/manual/sql/function/datetime_fn.html#from_days)
- [FROM_UNIXTIME](https://www.coradb.ai/manual/sql/function/datetime_fn.html#from_unixtime)
- [HOUR](https://www.coradb.ai/manual/sql/function/datetime_fn.html#hour)
- [LAST_DAY](https://www.coradb.ai/manual/sql/function/datetime_fn.html#last_day)
- [MAKEDATE](https://www.coradb.ai/manual/sql/function/datetime_fn.html#makedate)
- [MAKETIME](https://www.coradb.ai/manual/sql/function/datetime_fn.html#maketime)
- [MINUTE](https://www.coradb.ai/manual/sql/function/datetime_fn.html#minute)
- [MONTH](https://www.coradb.ai/manual/sql/function/datetime_fn.html#month)
- [QUARTER](https://www.coradb.ai/manual/sql/function/datetime_fn.html#quarter)
- [SEC_TO_TIME](https://www.coradb.ai/manual/sql/function/datetime_fn.html#sec_to_time)
- [SECOND](https://www.coradb.ai/manual/sql/function/datetime_fn.html#second)
- [TIME](https://www.coradb.ai/manual/sql/function/datetime_fn.html#time)
- [TIME_TO_SEC](https://www.coradb.ai/manual/sql/function/datetime_fn.html#time_to_sec)
- [TIMEDIFF](https://www.coradb.ai/manual/sql/function/datetime_fn.html#timediff)
- [TO_DAYS](https://www.coradb.ai/manual/sql/function/datetime_fn.html#to_days)
- [WEEK](https://www.coradb.ai/manual/sql/function/datetime_fn.html#week)
- [WEEKDAY](https://www.coradb.ai/manual/sql/function/datetime_fn.html#weekday)
- [YEAR](https://www.coradb.ai/manual/sql/function/datetime_fn.html#year)

**String functions**

- [ASCII](https://www.coradb.ai/manual/sql/function/string_fn.html#ascii)
- [BIN](https://www.coradb.ai/manual/sql/function/string_fn.html#bin)
- [BIT_LENGTH](https://www.coradb.ai/manual/sql/function/string_fn.html#bit_length)
- [CHR](https://www.coradb.ai/manual/sql/function/string_fn.html#chr)

**Numeric functions**

- [ABS](https://www.coradb.ai/manual/sql/function/numeric_fn.html#abs)
- [ACOS](https://www.coradb.ai/manual/sql/function/numeric_fn.html#acos)
- [ASIN](https://www.coradb.ai/manual/sql/function/numeric_fn.html#asin)
- [ATAN](https://www.coradb.ai/manual/sql/function/numeric_fn.html#atan)
- [ATAN2](https://www.coradb.ai/manual/sql/function/numeric_fn.html#atan2)
- [CEIL](https://www.coradb.ai/manual/sql/function/numeric_fn.html#ceil)
- [CONV](https://www.coradb.ai/manual/sql/function/numeric_fn.html#conv)
- [COS](https://www.coradb.ai/manual/sql/function/numeric_fn.html#cos)
- [COT](https://www.coradb.ai/manual/sql/function/numeric_fn.html#cot)
- [DEGREES](https://www.coradb.ai/manual/sql/function/numeric_fn.html#degrees)
- [EXP](https://www.coradb.ai/manual/sql/function/numeric_fn.html#exp)
- [FLOOR](https://www.coradb.ai/manual/sql/function/numeric_fn.html#floor)
- [LN](https://www.coradb.ai/manual/sql/function/numeric_fn.html#fn-ln)
- [LOG2](https://www.coradb.ai/manual/sql/function/numeric_fn.html#log2)
- [LOG10](https://www.coradb.ai/manual/sql/function/numeric_fn.html#log10)
- [MOD](https://www.coradb.ai/manual/sql/function/numeric_fn.html#mod)
- [POW](https://www.coradb.ai/manual/sql/function/numeric_fn.html#fn-pow)
- [RADIANS](https://www.coradb.ai/manual/sql/function/numeric_fn.html#radians)
- [SIGN](https://www.coradb.ai/manual/sql/function/numeric_fn.html#sign)
- [SIN](https://www.coradb.ai/manual/sql/function/numeric_fn.html#sin)
- [SQRT](https://www.coradb.ai/manual/sql/function/numeric_fn.html#sqrt)
- [TAN](https://www.coradb.ai/manual/sql/function/numeric_fn.html#tan)
- [TRUNC](https://www.coradb.ai/manual/sql/function/datetime_fn.html#trunc)
- [WIDTH_BUCKET](https://www.coradb.ai/manual/sql/function/numeric_fn.html#width_bucket)

``` sql
SET SYSTEM PARAMETERS 'return_null_on_function_errors=no';         
SELECT YEAR('12:34:56');
```

``` text
ERROR: Conversion error in time format.
```

``` sql
SET SYSTEM PARAMETERS 'return_null_on_function_errors=yes';         
SELECT YEAR('12:34:56');
```

``` text
year('12:34:56')
======================
NULL
```

### string_max_size_bytes

**string_max_size_bytes** is a parameter to define the maximum byte allowable in string functions or operators. You can set a unit as B, K, M, G or T, which stands for bytes, kilobytes(KB), megabytes(MB), gigabytes(GB) or terabytes(TB) respectively. If you omit the unit, bytes will be applied. The default value is **1,048,576**(1M). The minimum value is 64 and the maximum value is 33,554,432(32M).

The functions and operators affected by this parameter are as follows:

- [SPACE](https://www.coradb.ai/manual/sql/function/string_fn.html#space)
- [CONCAT](https://www.coradb.ai/manual/sql/function/string_fn.html#concat)
- [CONCAT_WS](https://www.coradb.ai/manual/sql/function/string_fn.html#concat_ws)
- '**+**': Operand of string
- [REPEAT](https://www.coradb.ai/manual/sql/function/string_fn.html#repeat)
- [GROUP_CONCAT](https://www.coradb.ai/manual/sql/function/analysis_fn.html#group_concat): This function is affected not only by **string_max_size_bytes** parameter, but also by **group_concat_max_len**.
- [INSERT](https://www.coradb.ai/manual/sql/function/string_fn.html#insert) function

### unicode_input_normalization

**unicode_input_normalization** is a parameter to determine whether or not to input unicode stored in system level or not. The default value is **no**.

In general, unicode text can be stored in "fully composed" or "fully decomposed". When character 'Ä' has 00C4 (if it is encoded in UTF-8, it becomes 2 bytes of C3 84) which is only one code point. In "fully decomposed" mode, it has two code points/characters. It is 0041 (character "A") and 0308(COMBINING DIAERESIS). In case of UTF-8 encoding, it becomes 3 bytes of 41 CC 88.

CoraDB can work with fully composed unicode. For clients which have fully decomposed texts, configure the value of **unicode_input_normalization** to yes so that it can be converted to fully composed mode; and then it can be reverted to fully decomposed mode. For normalization of unicode encapsulation of CoraDB, compatibility equivalence is not applied. In general, normalization of unicode is not possible to revert after composition, CoraDB supports revert for characters as many as possible, and it applies normalization of unicode encapsulation. The characteristics of CoraDB normalization are as follows:

- In case of language specific, normalization does not depend on locale.

  If one or more locale can be used, this means every CAS/corasql process, not CoraDB server. The **unicode_input_normalization** system parameter determines whether composition of input codes by normalization in system level. The **unicode_output_normalization** system parameter determines whether composition of output codes by normalization in system level.

- Collation and normalization does not have direct relationship.

  Even though the value of **unicode_input_normalization** is no, the string of extensible collation (utf8_de_exp, utf8_jap_exp, utf8_km_exp) is properly sorted fully decomposed mode, it is not intended; it is side-effect of UCA(Unicode Collation Algorithm). The extensible collation is implemented only with fully composed texts.

- In CoraDB, composition and decomposition for normalization does not work separately.

  It is generally used when **unicode_input_normalization** and **unicode_output_normalization** are yes. In this case, codes entered from clients are stored in composed mode and output in decomposed mode.

If the application client sends the decomposed text data into CoraDB, let CoraDB deal with the composed code, by setting **unicode_input_normalization** as **yes**.

If the application client can deal with the decomposed text data only, let CoraDB always send the decomposed code, by setting **unicode_output_normalization** as **yes**.

If the application client knows both of input and output, leave the setting **unicode_input_normalization** and **unicode_output_normalization** as **no**.

For more details, see [An overview of globalization](https://www.coradb.ai/manual/sql/i18n.html).

### unicode_output_normalization

**unicode_output_normalization** is a parameter to determine whether or not to output unicode stored in system level. The default value is **no**. For details, see the above **unicode_input_normalization** description.

### update_use_attribute_references

**update_use_attribute_references** is a parameter whether a value X of a column to be updated in an **UPDATE** statement affects to another column's update which uses X. The default is **no**.

The below result of an **UPDATE** statement is dependent on the value of **update_use_attribute_references** parameter.

``` sql
CREATE TABLE tbl(a INT, b INT); 
INSERT INTO tbl values (10, NULL); 

UPDATE tbl SET a=1, b=a; 
```

If this parameter's value is **yes**, the updated value of the column "b" will be "1" which is affected by "a=1".

``` sql
SELECT * FROM tbl; 
```

``` text
1, 1 
```

If this parameter's value is **no**, the updated value of the column "b" will be "NULL", which is affected by the value of "a" stored in the record, not by "a=1".

``` sql
SELECT * FROM tbl; 
```

``` text
1, NULL
```

## Timezone parameter

The following are the parameters related to timezone. The type and the value range for each parameter are as follows:

| Parameter name         | Type   | Default         | Min | Max |
|------------------------|--------|-----------------|-----|-----|
| [server_timezone](https://www.coradb.ai/manual/admin/config_sql.html#server_timezone) | string | OS timezone     |     |     |
| [timezone](https://www.coradb.ai/manual/admin/config_sql.html#timezone) | string | server_timezone |     |     |
| [tz_leap_second_support](https://www.coradb.ai/manual/admin/config_sql.html#tz_leap_second_support) | bool   | no              |     |     |

### timezone

Specifies a timezone for a session. The default is a value of **server_timezone**. This value can be specified by a timezone offset (e.g. +01:00, +02) or a timezone region name (e.g. Asia/Seoul). This value can be changed during operating database.

### server_timezone

Specifies a timezone for a server. The default is a OS timezone. To apply the changed value, database should be restarted. The timezone of operating system is read depending on the operating system and information found in operating system configuration files:

- On Windows, the API tzset() function and tzname\[0\] variable are used to retrieve an Windows style timezone name. This name is translated into IANA/CoraDB style name using the CoraDB mapping data (the mapping file is %CORADB%\timezones\tzdata\windowsZones.xml).
- On Linux, CoraDB attempts to read and parse the file "/etc/sysconfig/clock". If this file is not available, then the value of link "/etc/localtime" is read and used.
- On AIX, the value of "TZ" operating system environment variable is used.

On all operating systems, if the server_timezone is not specified, and the value for timezone from operating system cannot be read, then "Asia/Seoul" zone is used as server timezone.

### tz_leap_second_support

Specifies to support a leap second or not as yes or no. The default is **no**.

A leap second is a one-second adjustment that is occasionally applied to Coordinated Universal Time (UTC) in order to keep its time of day close to the mean solar time.

To apply the changed value, database should be restarted.

## Query plan cache-related parameters

The following are parameters related to the query plan cache functionality. The type and value range for each parameter are as follows:

| Parameter name                | Type | Default | Min | Max |
|-------------------------------|------|---------|-----|-----|
| [max_plan_cache_entries](https://www.coradb.ai/manual/admin/config_sql.html#max_plan_cache_entries) | int  | 1,000   |     |     |
| [max_filter_pred_cache_entries](https://www.coradb.ai/manual/admin/config_sql.html#max_filter_pred_cache_entries) | int  | 1,000   |     |     |

### max_plan_cache_entries

**max_plan_cache_entries** is a parameter to configure the maximum number of query plans to be cached in the memory. If the **max_plan_cache_entries** parameter is configured to -1 or 0, generated query plans are not stored in the memory cache; if it is configured to an integer value equal to 0 or greater than 1, a specified number of query plans are cached in the memory.

The following example shows how to cache up to 1,000 queries.

``` text
max_plan_cache_entries=1000
```

### max_filter_pred_cache_entries

**max_filter_pred_cache_entries** is a parameter used to specify the maximum number of filtered index expressions. The filtered index expressions are stored with them complied and can be immediately used in server. If it is not stored in cache, the process is required which filtered index expressions are fetched from database schema and interpreted.

## Query cache-related parameters

The following are the parameters related to the query cache functionality. The type and value range for each parameter are as follows:

| Parameter name            | Type | Default | Min | Max     |
|---------------------------|------|---------|-----|---------|
| [max_query_cache_entries](https://www.coradb.ai/manual/admin/config_sql.html#max_query_cache_entries) | int  | 0       | 0   | INT_MAX |
| [query_cache_size_in_pages](https://www.coradb.ai/manual/admin/config_sql.html#query_cache_size_in_pages) | int  | 0       | 0   | INT_MAX |

Both parameters are 0 by default, so the query cache is disabled. If either parameter is 0 or negative, the **QUERY_CACHE** hint has no effect; set both to positive values to enable it.

### max_query_cache_entries

**max_query_cache_entries** is a parameter to configure the maximum number of query to be cached. When it is greater than 0 (and **query_cache_size_in_pages** is also greater than 0), up to that many query results are cached.

The following example shows how to cache up to 500 queries.

``` text
max_query_cache_entries=500
```

### query_cache_size_in_pages

**query_cache_size_in_pages** is a parameter to configure the maximum page of result to be cached. When it is greater than 0 (and **max_query_cache_entries** is also greater than 0), cached results can use up to that many pages, stored as temporary files.

The following example shows how to cache up to 4,000 pages.

``` text
query_cache_size_in_pages=4000
```
