DBZ-5201 Debezium does NOT support unix_timestamp() as DEFAULT value

This commit is contained in:
harveyyue 2022-06-07 22:57:11 +08:00 committed by Jiri Pechanec
parent 51e148edf3
commit 6c39302379
2 changed files with 2 additions and 0 deletions

View File

@ -2263,6 +2263,7 @@ defaultValue
| '(' expression ')' | '(' expression ')'
| (LASTVAL | NEXTVAL) '(' fullId ')' // MariaDB | (LASTVAL | NEXTVAL) '(' fullId ')' // MariaDB
| '(' (PREVIOUS | NEXT) VALUE FOR fullId ')' // MariaDB | '(' (PREVIOUS | NEXT) VALUE FOR fullId ')' // MariaDB
| expression // MariaDB
; ;
currentTimestamp currentTimestamp

View File

@ -138,6 +138,7 @@ UNIQUE KEY `UN_member_id` (`member_id`) USING BTREE,
UNIQUE KEY `UN_product_no` (`product_no`) USING BTREE UNIQUE KEY `UN_product_no` (`product_no`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
CREATE TABLE `table_default_fn`(`quote_id` varchar(32) NOT NULL,`created_at` bigint(20) NOT NULL DEFAULT unix_timestamp());
#end #end
#begin #begin
-- Rename table -- Rename table