Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion drivers/mysql/internal/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func (m *MySQL) IsCDCSupported(ctx context.Context) (bool, error) {
}{
{jdbc.MySQLLogBinQuery(), "ON", "log_bin is not enabled"},
{jdbc.MySQLBinlogFormatQuery(), "ROW", "binlog_format is not set to ROW"},
{jdbc.MySQLBinlogRowMetadataQuery(), "FULL", "binlog_row_metadata is not set to FULL"},
{jdbc.MySQLBinlogRowImageQuery(), "FULL", "binlog_row_image is not set to FULL"},
}

for _, check := range configChecks {
Expand Down
5 changes: 5 additions & 0 deletions pkg/jdbc/jdbc.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,11 @@ func MySQLBinlogRowMetadataQuery() string {
return "SHOW VARIABLES LIKE 'binlog_row_metadata'"
}

// MySQLBinlogRowImageQuery returns the query to fetch the binlog_row_image variable in MySQL
func MySQLBinlogRowImageQuery() string {
return "SHOW VARIABLES LIKE 'binlog_row_image'"
}

// MySQLTableColumnsQuery returns the query to fetch column names of a table in MySQL
func MySQLTableColumnsQuery() string {
return `
Expand Down