]> granicus.if.org Git - postgresql/commit
the following little patch adds array references to query
authorBruce Momjian <bruce@momjian.us>
Fri, 2 Oct 1998 16:23:07 +0000 (16:23 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 2 Oct 1998 16:23:07 +0000 (16:23 +0000)
commit9b21a18cee705fa972e5b8f8ab106145015bafe7
tree5b3b9405c64278725831546e69ae6e6b70e6d51f
parent772a596ed2c0ebe1728b3dfa9a53a96e7fbdd0d0
the  following  little  patch  adds array references to query
    parameters. With it applied a function like

    CREATE FUNCTION getname(oid8, int4) RETURNS name AS
        'SELECT typname FROM pg_type WHERE oid = $1[$2]'
        LANGUAGE 'sql';

    is possible. Mainly I need this to enable array references in
    expressions for PL/pgSQL. Complete regression test ran O.K.

Jan
src/backend/parser/gram.y
src/backend/parser/parse_expr.c
src/include/nodes/parsenodes.h