Ticket Hash: | 585db77afe83c0248444659dd3e17c82b733e96e | |||
Title: | `TIMESTAMP NULL` is missing `tf_null` flag in `type_info.cpp` | |||
Status: | Closed | Type: | Code Defect | |
Severity: | Critical | Priority: | Immediate | |
Subsystem: | Library | Resolution: | Fixed | |
Last Modified: | 2020-07-23 06:53:17 | |||
Version Found In: | all version | |||
User Comments: | ||||
nofree added on 2020-07-17 04:39:15:
(text/x-markdown)
## bug for all version in file type_info.cpp `TIMESTAMP NULL` is missing null flag ```C++ sql_type_info("TIMESTAMP NOT NULL", typeid(sql_timestamp), MYSQL_TYPE_TIMESTAMP), ... sql_type_info("TIMESTAMP NULL", typeid(Null<sql_timestamp>), MYSQL_TYPE_TIMESTAMP), ``` ## patch ```C++ diff -ruN mysql++-olddir/lib/type_info.cpp mysql++-newdir/lib/type_info.cpp --- mysql++-olddir/lib/type_info.cpp 2020-02-28 04:31:27.000000000 +0800 +++ mysql++-newdir/lib/type_info.cpp 2020-07-17 12:34:29.700736347 +0800 @@ -178,7 +178,7 @@ sql_type_info("NULL NULL", typeid(Null<void>), MYSQL_TYPE_NULL, mysql_ti_sql_type_info::tf_null), sql_type_info("TIMESTAMP NULL", typeid(Null<sql_timestamp>), - MYSQL_TYPE_TIMESTAMP), + MYSQL_TYPE_TIMESTAMP, mysql_ti_sql_type_info::tf_null), sql_type_info("BIGINT NULL", typeid(Null<sql_bigint>), MYSQL_TYPE_LONGLONG, mysql_ti_sql_type_info::tf_default | mysql_ti_sql_type_info::tf_null), ``` tangent added on 2020-07-23 06:53:17: (text/x-markdown) Fixed by [40f302fba15]. |