uqa-sql 0.6.1

PostgreSQL-compatible SQL compiler built on libpg_query
Documentation
{
  "postgresql_version": "PostgreSQL 18.4 (Debian 18.4-1.pgdg13+1) on aarch64-unknown-linux-gnu, compiled by gcc (Debian 14.2.0-19) 14.2.0, 64-bit",
  "cases": [
    {"sql": "DROP FUNCTION \"Mixed Name\"","command_tags": [],"error": {"sqlstate": "42883","message": "could not find a function named \"Mixed Name\"","detail": null,"hint": null},"results": [],"notices": []},
    {"sql": "ALTER FUNCTION \"Mixed Name\" STABLE","command_tags": [],"error": {"sqlstate": "42883","message": "could not find a function named \"Mixed Name\"","detail": null,"hint": null},"results": [],"notices": []},
    {"sql": "GRANT EXECUTE ON FUNCTION \"Mixed Name\" TO PUBLIC","command_tags": [],"error": {"sqlstate": "42883","message": "could not find a function named \"Mixed Name\"","detail": null,"hint": null},"results": [],"notices": []},
    {"sql": "DROP FUNCTION IF EXISTS \"Mixed Name\"(int4)","command_tags": ["DROP FUNCTION"],"error": null,"results": [{"columns": [],"type_oids": [],"rows": []}],"notices": [{"severity": "NOTICE","sqlstate": "00000","message": "function Mixed Name(int4) does not exist, skipping","detail": null,"hint": null}]},
    {"sql": "DROP FUNCTION IF EXISTS \"Mixed Name\"","command_tags": ["DROP FUNCTION"],"error": null,"results": [{"columns": [],"type_oids": [],"rows": []}],"notices": [{"severity": "NOTICE","sqlstate": "00000","message": "function Mixed Name() does not exist, skipping","detail": null,"hint": null}]},
    {"sql": "DROP FUNCTION \"a\"\"b\"(integer)","command_tags": [],"error": {"sqlstate": "42883","message": "function a\"b(integer) does not exist","detail": null,"hint": null},"results": [],"notices": []},
    {"sql": "DROP FUNCTION \"a\"\"b\"","command_tags": [],"error": {"sqlstate": "42883","message": "could not find a function named \"a\"b\"","detail": null,"hint": null},"results": [],"notices": []},
    {"sql": "CREATE FUNCTION \"Mixed Name\"(integer) RETURNS integer LANGUAGE sql AS $$ SELECT 1 $$","command_tags": ["CREATE FUNCTION"],"error": null,"results": [{"columns": [],"type_oids": [],"rows": []}],"notices": []},
    {"sql": "CREATE FUNCTION \"Mixed Name\"(text) RETURNS integer LANGUAGE sql AS $$ SELECT 2 $$","command_tags": ["CREATE FUNCTION"],"error": null,"results": [{"columns": [],"type_oids": [],"rows": []}],"notices": []},
    {"sql": "DROP FUNCTION \"Mixed Name\"","command_tags": [],"error": {"sqlstate": "42725","message": "function name \"Mixed Name\" is not unique","detail": null,"hint": "Specify the argument list to select the function unambiguously."},"results": [],"notices": []},
    {"sql": "ALTER FUNCTION \"Mixed Name\" STABLE","command_tags": [],"error": {"sqlstate": "42725","message": "function name \"Mixed Name\" is not unique","detail": null,"hint": "Specify the argument list to select the function unambiguously."},"results": [],"notices": []},
    {"sql": "GRANT EXECUTE ON FUNCTION \"Mixed Name\" TO PUBLIC","command_tags": [],"error": {"sqlstate": "42725","message": "function name \"Mixed Name\" is not unique","detail": null,"hint": "Specify the argument list to select the function unambiguously."},"results": [],"notices": []},
    {"sql": "DROP PROCEDURE \"Mixed Name\"(integer)","command_tags": [],"error": {"sqlstate": "42809","message": "Mixed Name(integer) is not a procedure","detail": null,"hint": null},"results": [],"notices": []},
    {"sql": "ALTER PROCEDURE \"Mixed Name\"(integer) SECURITY DEFINER","command_tags": [],"error": {"sqlstate": "42809","message": "Mixed Name(integer) is not a procedure","detail": null,"hint": null},"results": [],"notices": []},
    {"sql": "ALTER FUNCTION \"Mixed Name\"(integer) STABLE","command_tags": ["ALTER FUNCTION"],"error": null,"results": [{"columns": [],"type_oids": [],"rows": []}],"notices": []},
    {"sql": "SELECT \"Mixed Name\"(1) AS int_result, \"Mixed Name\"('x'::text) AS text_result","command_tags": ["SELECT 1"],"error": null,"results": [{"columns": ["int_result","text_result"],"type_oids": [23,23],"rows": [["1","2"]]}],"notices": []},
    {"sql": "DROP FUNCTION \"Mixed Name\"(integer)","command_tags": ["DROP FUNCTION"],"error": null,"results": [{"columns": [],"type_oids": [],"rows": []}],"notices": []},
    {"sql": "SELECT \"Mixed Name\"('x'::text)","command_tags": ["SELECT 1"],"error": null,"results": [{"columns": ["Mixed Name"],"type_oids": [23],"rows": [["2"]]}],"notices": []},
    {"sql": "CREATE SCHEMA a","command_tags": ["CREATE SCHEMA"],"error": null,"results": [{"columns": [],"type_oids": [],"rows": []}],"notices": []},
    {"sql": "CREATE FUNCTION a.b(integer) RETURNS integer LANGUAGE sql AS $$ SELECT 3 $$","command_tags": ["CREATE FUNCTION"],"error": null,"results": [{"columns": [],"type_oids": [],"rows": []}],"notices": []},
    {"sql": "CREATE FUNCTION \"a.b\"(integer) RETURNS integer LANGUAGE sql AS $$ SELECT 4 $$","command_tags": ["CREATE FUNCTION"],"error": null,"results": [{"columns": [],"type_oids": [],"rows": []}],"notices": []},
    {"sql": "SELECT a.b(1) AS qualified, \"a.b\"(1) AS quoted","command_tags": ["SELECT 1"],"error": null,"results": [{"columns": ["qualified","quoted"],"type_oids": [23,23],"rows": [["3","4"]]}],"notices": []},
    {"sql": "DROP FUNCTION \"a.b\"(text)","command_tags": [],"error": {"sqlstate": "42883","message": "function a.b(text) does not exist","detail": null,"hint": null},"results": [],"notices": []},
    {"sql": "DROP FUNCTION a.b(text)","command_tags": [],"error": {"sqlstate": "42883","message": "function a.b(text) does not exist","detail": null,"hint": null},"results": [],"notices": []},
    {"sql": "DROP FUNCTION \"a.b\"(integer)","command_tags": ["DROP FUNCTION"],"error": null,"results": [{"columns": [],"type_oids": [],"rows": []}],"notices": []},
    {"sql": "SELECT a.b(1)","command_tags": ["SELECT 1"],"error": null,"results": [{"columns": ["b"],"type_oids": [23],"rows": [["3"]]}],"notices": []},
    {"sql": "DROP FUNCTION \"a.b\"","command_tags": [],"error": {"sqlstate": "42883","message": "could not find a function named \"a.b\"","detail": null,"hint": null},"results": [],"notices": []},
    {"sql": "CREATE SCHEMA \"Mixed Schema\"","command_tags": ["CREATE SCHEMA"],"error": null,"results": [{"columns": [],"type_oids": [],"rows": []}],"notices": []},
    {"sql": "DROP FUNCTION \"Mixed Schema\".\"Missing Name\"","command_tags": [],"error": {"sqlstate": "42883","message": "could not find a function named \"Mixed Schema.Missing Name\"","detail": null,"hint": null},"results": [],"notices": []},
    {"sql": "DROP FUNCTION IF EXISTS \"Mixed Schema\".\"Missing Name\"(int4)","command_tags": ["DROP FUNCTION"],"error": null,"results": [{"columns": [],"type_oids": [],"rows": []}],"notices": [{"severity": "NOTICE","sqlstate": "00000","message": "function Mixed Schema.Missing Name(int4) does not exist, skipping","detail": null,"hint": null}]}
  ],
  "provenance": {"collector_sha256": "13a39469bb3d558afeee4871e01b992101c49980fc49e2d246bb327248f9e0ec","postgresql_source_revision": "f5cc81719e6da4cbdb1f797c48b693e91018153a","source_file": "src/backend/parser/parse_func.c","scope": "Quoted routine lookup: bare and exact names, ambiguity, notices, routine kinds and quoted versus qualified identity.","capture_sha256": "e984d9bc8ac4fdec0b3954deda6a5b5743075d38ca876511af0d9e9029395553"}
}