Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangpeng
dinky
Commits
4a76b825
Unverified
Commit
4a76b825
authored
Sep 26, 2022
by
Gavin
Committed by
GitHub
Sep 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update CreateCDCSourceOperation.java (#1058)
[Fix][Data-Sync] Fix table columns is empty when sub database and sub table (#1057)
parent
b617a4df
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
CreateCDCSourceOperation.java
...in/java/com/dlink/trans/ddl/CreateCDCSourceOperation.java
+5
-0
No files found.
dlink-executor/src/main/java/com/dlink/trans/ddl/CreateCDCSourceOperation.java
View file @
4a76b825
...
@@ -98,6 +98,11 @@ public class CreateCDCSourceOperation extends AbstractOperation implements Opera
...
@@ -98,6 +98,11 @@ public class CreateCDCSourceOperation extends AbstractOperation implements Opera
String
schemaName
=
table
.
getSchema
();
String
schemaName
=
table
.
getSchema
();
Schema
schema
=
Schema
.
build
(
schemaName
);
Schema
schema
=
Schema
.
build
(
schemaName
);
schema
.
setTables
(
Collections
.
singletonList
(
table
));
schema
.
setTables
(
Collections
.
singletonList
(
table
));
//分库分表所有表结构都是一样的,取出列表中第一个表名即可
String
schemaTableName
=
table
.
getSchemaTableNameList
().
get
(
0
);
//真实的表名
String
tableName
=
schemaTableName
.
split
(
"\\."
)[
1
];
table
.
setColumns
(
driver
.
listColumnsSortByPK
(
schemaName
,
tableName
));
table
.
setColumns
(
driver
.
listColumnsSortByPK
(
schemaName
,
table
.
getName
()));
table
.
setColumns
(
driver
.
listColumnsSortByPK
(
schemaName
,
table
.
getName
()));
schemaList
.
add
(
schema
);
schemaList
.
add
(
schema
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment