We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 12d3420 + 43d788e commit 313a79eCopy full SHA for 313a79e
db/mysql/db.go
@@ -165,8 +165,8 @@ func (db *mysqlDB) createTable(driverName string) error {
165
s := fmt.Sprintf("CREATE TABLE IF NOT EXISTS %s (YCSB_KEY VARCHAR(64) PRIMARY KEY", tableName)
166
buf.WriteString(s)
167
168
- if driverName == "tidb" && db.p.GetBool(tidbClusterIndex, true) {
169
- buf.WriteString(" CLUSTERED")
+ if (driverName == "tidb" || driverName == "mysql") && db.p.GetBool(tidbClusterIndex, true) {
+ buf.WriteString(" /*T![clustered_index] CLUSTERED */")
170
}
171
172
for i := int64(0); i < fieldCount; i++ {
0 commit comments