Skip to content

Replace dots with an underscore when creating an alias for the recursive CTE

What does this MR do?

CE port of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/9445. When the Arel table to use as the alias contains a schema in your name, e.g., "gitlab_secondary"."namespaces" it produces an invalid query.

What are the relevant issue numbers?

#8798.

Merge request reports