MCPcopy
hub / github.com/pingcap/tidb / escapeString

Function escapeString

dumpling/export/sql.go:1437–1439  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

1435}
1436
1437func escapeString(s string) string {
1438 return strings.ReplaceAll(s, "`", "``")
1439}
1440
1441// GetPartitionNames get partition names from a specified table
1442func GetPartitionNames(tctx *tcontext.Context, db *BaseConn, schema, table string) (partitions []string, err error) {

Callers 15

ShowCreateDatabaseFunction · 0.70
ShowCreateTableFunction · 0.70
ShowCreateViewFunction · 0.70
ShowCreateSequenceFunction · 0.70
ListAllDatabasesTablesFunction · 0.70
buildSelectQueryFunction · 0.70
SelectTiDBRowIDFunction · 0.70
GetColumnTypesFunction · 0.70
GetPrimaryKeyColumnsFunction · 0.70
getNumericIndexFunction · 0.70

Calls

no outgoing calls

Tested by 2

TestDumpExitFunction · 0.56