Skip to content

Commit 6aa3872

Browse files
committed
table init changed
table init changed
1 parent aa1ecdf commit 6aa3872

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pymysqlreplication/table.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33

44
class Table(object):
5-
def __init__(self, table_id, schema, table, columns, primary_key=None):
6-
self.column_name_flag = False
5+
def __init__(
6+
self, table_id, schema, table, columns, primary_key=None, column_name_flag=False
7+
):
78
if primary_key is None:
89
primary_key = [c.data["name"] for c in columns if c.data["is_primary"]]
910
if len(primary_key) == 0:
@@ -20,6 +21,7 @@ def __init__(self, table_id, schema, table, columns, primary_key=None):
2021
"table": table,
2122
"columns": columns,
2223
"primary_key": primary_key,
24+
"column_name_flag": column_name_flag,
2325
}
2426
)
2527

0 commit comments

Comments
 (0)