Note
This variable is available starting with V1.4.
Description
error_on_overlap_time specifies whether to return an error when ambiguous time zones occur in the overlapping area of daylight saving time.
Privilege requirements
Query variables
Global level
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle-compatible mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL-compatible mode) to obtain the value of a global system variable.Session level
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_SESSION_VARIABLEview (Oracle-compatible mode) or theinformation_schema.SESSION_VARIABLESview (MySQL-compatible mode) to obtain the value of a session system variable.
Modify variables
Global level
systenant can directly modify the value of a global system variable.MySQL user tenant must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.Oracle user tenant must have the
ALTER SYSTEMprivilege to modify the value of a global system variable.
Session level
systenant and all user tenants can directly modify the value of a session system variable.
Attributes
| Attribute | Description |
|---|---|
| Type | Bool |
| Default value | OFF |
| Value range |
|
| Scope |
|
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Examples
Do not return an error when ambiguous time zones occur in the overlapping area of daylight saving time.
Global level
obclient> SET GLOBAL error_on_overlap_time =OFF;Session level
obclient> SET error_on_overlap_time =OFF;