MCPcopy Create free account
hub / github.com/bytebase/bytebase / getIsDetailCaseSensitive

Function getIsDetailCaseSensitive

backend/store/model/database.go:1282–1289  ·  view source on GitHub ↗

getIsDetailCaseSensitive is a special case for MySQL, MariaDB, and TiDB. From MySQL documentation: Partition, subpartition, column, index, stored routine, event, and resource group names are not case-sensitive on any platform, nor are column aliases.

(engine storepb.Engine)

Source from the content-addressed store, hash-verified

1280// From MySQL documentation:
1281// Partition, subpartition, column, index, stored routine, event, and resource group names are not case-sensitive on any platform, nor are column aliases.
1282func getIsDetailCaseSensitive(engine storepb.Engine) bool {
1283 switch engine {
1284 case storepb.Engine_MYSQL, storepb.Engine_MARIADB, storepb.Engine_TIDB, storepb.Engine_MSSQL, storepb.Engine_OCEANBASE:
1285 return false
1286 default:
1287 return true
1288 }
1289}

Callers 1

NewDatabaseMetadataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected