Skip to content

Commit 3f63d18

Browse files
authored
Feature/test (#43)
* feat: mysql 5 dd column type ENUM SET * refa: deploy script use click * fix: parse set * fix: set bit parse * fix: mysql 5 parse set column type error * rm: remove *ibd * feat: create table with set column
1 parent ba7e54a commit 3f63d18

File tree

6 files changed

+1
-64
lines changed

6 files changed

+1
-64
lines changed

data/ibdata1

-12 MB
Binary file not shown.

data/mysql.ibd

-24 MB
Binary file not shown.

data/t1.ibd

-112 KB
Binary file not shown.

data/t2.ibd

-112 KB
Binary file not shown.

devtools/create_table.py

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,6 @@
77
with open(".deploy_mysqld") as f:
88
url = f.readline().strip()
99

10-
all_type = [
11-
"BIGINT",
12-
"BINARY",
13-
"BLOB",
14-
"BOOLEAN",
15-
"DATE",
16-
"DATETIME",
17-
"DECIMAL",
18-
"DOUBLE",
19-
"DOUBLE_PRECISION",
20-
"FLOAT",
21-
"INT",
22-
"INTEGER",
23-
"JSON",
24-
"NUMERIC",
25-
"REAL",
26-
"SMALLINT",
27-
"TEXT",
28-
"TIME",
29-
"TIMESTAMP",
30-
"ENUM",
31-
]
32-
3310
all_type_with_length = ["VARBINARY", "CHAR", "NCHAR", "NVARCHAR", "VARCHAR"]
3411

3512
all_clob_type = [
@@ -53,6 +30,7 @@
5330
[f" {t} = Column(dmysql.types.{t}, comment='COMMENT FOR {t}')" for t in all_type]
5431
)
5532
all_type_column.append(" ENUM = Column(dmysql.ENUM('hello', 'world', 'a'))")
33+
all_type_column.append(" SET = Column(dmysql.SET('a', 'b', 'c'))")
5634
all_type_column.append(
5735
" int_def_col = Column(dmysql.types.BIGINT, server_default=text('42'))"
5836
)

devtools/start_container.py

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)