{# ============= Get the language name using oid ============= #}
{% if lid %}
    SELECT lanname FROM pg_catalog.pg_language WHERE oid = {{lid}}::oid;
{% endif %}
{# ============= Drop the language ============= #}
{% if lname %}
DROP LANGUAGE IF EXISTS {{ conn|qtIdent(lname) }}{% if cascade %} CASCADE{% endif%};
{% endif %}
