This function will return a regex that matches all type casts in the query.
()
| 332 | |
| 333 | // column conversion |
| 334 | "proallargtypes": catalog.SchemaNameSYS + "." + catalog.MacroNameMySplitListStr + "(proallargtypes)", |
| 335 | "proargtypes": catalog.SchemaNameSYS + "." + catalog.MacroNameMySplitListStr + "(proargtypes)", |
| 336 | } |
| 337 | |
| 338 | // This function will return a regex that matches all type casts in the query. |
| 339 | func getSimpleStringMatchingRegex() *regexp.Regexp { |
| 340 | initSimpleStrMatchingRegex.Do(func() { |
| 341 | var simpleStrings []string |
| 342 | for simpleString := range simpleStringsConversion { |
| 343 | simpleStrings = append(simpleStrings, regexp.QuoteMeta(simpleString)) |
| 344 | } |
| 345 | simpleStrMatchingRegex = regexp.MustCompile(`(?i)(` + strings.Join(simpleStrings, "|") + `)`) |
| 346 | }) |
no outgoing calls
no test coverage detected