Skip to content

Commit beb8d92

Browse files
authored
feat(json): fix hidden column make by json (#715)
Signed-off-by: YangKeao <[email protected]>
1 parent 9f51ed0 commit beb8d92

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sync_diff_inspector/utils/utils.go

+4
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,11 @@ func GetCountAndCRC32Checksum(ctx context.Context, db *sql.DB, schemaName, table
757757
*/
758758
columnNames := make([]string, 0, len(tbInfo.Columns))
759759
columnIsNull := make([]string, 0, len(tbInfo.Columns))
760+
log.Debug("table columns", zap.Any("columns", tbInfo.Columns))
760761
for _, col := range tbInfo.Columns {
762+
if col.Hidden {
763+
continue
764+
}
761765
name := dbutil.ColumnName(col.Name.O)
762766
// When col value is 0, the result is NULL.
763767
// But we can use ISNULL to distinguish between null and 0.

0 commit comments

Comments
 (0)