MCPcopy Create free account
hub / github.com/actiontech/dtle / IdentifierToString

Function IdentifierToString

driver/oracle/extractor/sql_parse.go:432–442  ·  view source on GitHub ↗
(i *oracle_element.Identifier)

Source from the content-addressed store, hash-verified

430}
431
432func IdentifierToString(i *oracle_element.Identifier) string {
433 if i == nil {
434 return ""
435 }
436 if i.Typ == oracle_element.IdentifierTypeNonQuoted {
437 return strings.ToUpper(i.Value)
438 } else if i.Typ == oracle_element.IdentifierTypeQuoted {
439 return strings.TrimLeft(strings.TrimRight(i.Value, `"`), `"`)
440 }
441 return ""
442}
443
444func HandlingForSpecialCharacters(i *oracle_element.Identifier) string {
445 return fmt.Sprintf("`%s`", IdentifierToString(i))

Callers 3

oracleTp2MySQLTpFunction · 0.85
parseDDLSQLMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected