Skip to content

Commit

Permalink
[enhancement](binlog) Add dbName && tableName in CreateTableRecord (a…
Browse files Browse the repository at this point in the history
…pache#26901)

Signed-off-by: Jack Drogon <jack.xsuperman@gmail.com>
  • Loading branch information
JackDrogon committed Nov 17, 2023
1 parent cd1ddd3 commit 105192b
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,24 @@ public class CreateTableRecord {
private long commitSeq;
@SerializedName(value = "dbId")
private long dbId;
@SerializedName(value = "dbName")
private String dbName;
@SerializedName(value = "tableId")
private long tableId;
@SerializedName(value = "tableName")
private String tableName;
@SerializedName(value = "sql")
private String sql;

public CreateTableRecord(long commitSeq, CreateTableInfo info) {
this.commitSeq = commitSeq;

Table table = info.getTable();
this.tableName = table.getName();

this.commitSeq = commitSeq;
this.tableId = table.getId();
String dbName = info.getDbName();
this.dbName = dbName;

Database db = Env.getCurrentInternalCatalog().getDbNullable(dbName);
if (db == null) {
Expand Down

0 comments on commit 105192b

Please sign in to comment.