Skip to content

Commit

Permalink
55
Browse files Browse the repository at this point in the history
  • Loading branch information
ymakedaq committed Sep 30, 2024
1 parent c7d92ff commit dda10ee
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ func (c CreateTableResult) SpiderChecker(spiderVersion string) (r *CheckerResult
if c.ColCharsetNotEqTbCharset() {
r.Trigger(SR.SpiderCreateTableRule.ColChasetNotEqTbChaset, "")
}
c.shardKeyChecker(r)
// when sql is create table like, no check shard key
if !c.IsCreateTableLike {
c.shardKeyChecker(r)
}
return r
}

Expand Down

0 comments on commit dda10ee

Please sign in to comment.