Constant mz_sql::plan::typeconv::REG_STRING_CAST_TEMPLATE
source ยท const REG_STRING_CAST_TEMPLATE: &str = "(
SELECT
COALESCE(mz_internal.mz_global_id_to_name(o.id), CAST($1 AS pg_catalog.oid)::pg_catalog.text)
AS text
FROM
(
SELECT
(
SELECT DISTINCT id
FROM
mz_catalog.mz_objects AS o
JOIN
mz_internal.mz_object_oid_alias AS a
ON o.type = a.object_type
WHERE
oid = CAST($1 AS pg_catalog.oid)
AND
a.oid_alias = '{0}'
)
)
AS o
)";