mirror of
https://gitee.com/johng/gf.git
synced 2024-12-04 21:28:22 +08:00
ce8b536fca
* Parse database empty json field to empty object( fix issue 2105 ) * fix issue #2105 Co-authored-by: Xu <zhenghao.xu> Co-authored-by: John Guo <john@johng.cn>
10 lines
451 B
SQL
10 lines
451 B
SQL
CREATE TABLE `issue2105` (
|
|
`id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
|
|
`json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB;
|
|
|
|
|
|
INSERT INTO `issue2105` VALUES ('1', NULL);
|
|
INSERT INTO `issue2105` VALUES ('2', '[{\"Name\": \"任务类型\", \"Value\": \"高价值\"}, {\"Name\": \"优先级\", \"Value\": \"高\"}, {\"Name\": \"是否亮点功能\", \"Value\": \"是\"}]');
|