apecloud / myduckserver

MySQL & Postgres Analytics, Reimagined
184 stars 8 forks source link

Table does not support `AUTO_INCREMENT%` pattern #98

Closed TianyuZhang1214 closed 1 month ago

TianyuZhang1214 commented 1 month ago

Source table is:

CREATE TABLE IF NOT EXISTS `test_sync_t_0` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `md5` varchar(32) NOT NULL,
  `database_ip` varchar(64) NOT NULL,
  `database_port` int NOT NULL,
  `table_name` varchar(255) NOT NULL,
  `sql` text NOT NULL,
  `create_time` datetime NOT NULL DEFAULT '1970-01-01 00:00:01',
  `occur_time_first` datetime NOT NULL DEFAULT '1970-01-01 00:00:01',
  `occur_time_last` datetime NOT NULL DEFAULT '1970-01-01 00:00:01',
  `real_sql` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1000001 DEFAULT CHARSET=utf8mb3