Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API clone summary: replace illegal chars in clone query (#1899)
Initial load UI for PG -> PG and SF would not load because dots weren't replaced with underscores for clone name This PR does the equivalent of our shared code which is used for clone name construction: ```golang // shared/string.go var ( reIllegalIdentifierCharacters = regexp.MustCompile("[^a-zA-Z0-9_]+") ... ) func ReplaceIllegalCharactersWithUnderscores(s string) string { return reIllegalIdentifierCharacters.ReplaceAllString(s, "_") } ``` in the clone query: ```sql WHERE qr.flow_name ^@ ($1||regexp_replace(qr.destination_table, '[^a-zA-Z0-9_]', '_', 'g')) ``` functionally tested
- Loading branch information