You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATEFUNCTIONf(x TIMESTAMPTZ) RETURNS void AS'' LANGUAGE sql;
CREATEFUNCTIONf(x timestamp with time zone) RETURNS void AS'' LANGUAGE sql;
-- name: F :oneSELECT f(1);
Using the experimental parser, this SQL should return an error about a duplicate function. Instead it compiles with no issue.
The problem is TIMESTAMPTZ resolves to type timestamptz and timestamp with time zone resolves to pg_catalog.timestamptz. The catalog doesn't recognize that these refer to the same type, so it allows both functions to be created.
The text was updated successfully, but these errors were encountered:
Using the experimental parser, this SQL should return an error about a duplicate function. Instead it compiles with no issue.
The problem is
TIMESTAMPTZ
resolves to typetimestamptz
andtimestamp with time zone
resolves topg_catalog.timestamptz
. The catalog doesn't recognize that these refer to the same type, so it allows both functions to be created.The text was updated successfully, but these errors were encountered: