Skip site navigation (1) Skip section navigation (2)

Patch - please apply

From: jwieck(at)debis(dot)com (Jan Wieck)
To: pgsql-hackers(at)postgreSQL(dot)org (PostgreSQL HACKERS)
Subject: Patch - please apply
Date: 1998-10-02 12:20:07
Message-ID: m0zP4Bs-000EBQC@orion.SAPserv.Hamburg.dsh.de (view raw or flat)
Thread:
Lists: pgsql-hackers
Hi,

    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

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#======================================== jwieck(at)debis(dot)com (Jan Wieck) #


begin 644 paramarray.diff
M9&EF9B`M8W(@<W)C+F]R:6<O8F%C:V5N9"]P87)S97(O9W)A;2YY('-R8R]B
M86-K96YD+W!A<G-E<B]G<F%M+GD**BHJ('-R8RYO<FEG+V)A8VME;F0O<&%R
M<V5R+V=R86TN>0E&<FD(at)3V-T("`R(#$R.C4X.C`V(#$Y(dot)3(at)*+2TM('-R8R]B
M86-K96YD+W!A<G-E<B]G<F%M+GD)1G)I($]C="`@,B`Q,CHU.3HP.2`Q.3DX
M"BHJ*BHJ*BHJ*BHJ*BHJ*(at)HJ*BH@-#4Y."PT-C`W("HJ*BH*("`)"0D)?0H@
M(`D).PH@(`HA(%!A<F%M3F\Z("!005)!30H@(`D)"0E["B`@"0D)"0DD)"`]
M(&UA:V5.;V1E*%!A<F%M3F\I.PH@(`D)"0D))"0M/FYU;6)E<B`]("0Q.PH@
M(`D)"0E]"B`@"0D["B`@"BTM+2`T-3DX+#0V,#@@+2TM+0H@(`D)"0E]"B`@
M"0D["B`@"B$(at)4&%R86U.;SH@(%!!4D%-(&]P=%]I;F1I<F5C=&EO;@H@(`D)
M"0E["B`@"0D)"0DD)"`](&UA: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D["B$@"0D)"7T*(2`)"0D)96QS90HA(`D)"0D)<F5S=6QT(#T@
M*$YO9&4(at)*BD@<&%R86T["B`@"0D)"6)R96%K.PH@(`D)"7T*("`)"6-A<V4@
M5%]!7T5X<'(Z"F1I9F8(at)+6-R('-R8RYO<FEG+VEN8VQU9&4O;F]D97,O<&%R
M<V5N;V1E<RYH('-R8R]I;F-L=61E+VYO9&5S+W!A<G-E;F]D97,N:`HJ*BH@
M<W)C+F]R:6<O:6YC;'5D92]N;V1E<R]P87)S96YO9&5S+F@)1G)I($]C="`@
M,B`Q,CHU.#HR-"`Q.3DX"BTM+2!S<F,O:6YC;'5D92]N;V1E<R]P87)S96YO
M9&5S+F@)1G)I($]C="`@,B`Q,CHU.3HU-B`Q.3DX"BHJ*BHJ*BHJ*BHJ*BHJ
M*(at)HJ*BH@-C8W+#8W,B`J*BHJ"BTM+2`V-C<L-C<S("TM+2T*("`)3F]D951A
M9PD)='EP93L*("`):6YT"0D);G5M8F5R.PD)"2\J('1H92!N=6UB97(@;V8@
M=&AE('!A<F%M971E<B`J+PH@(`E4>7!E3F%M92`@("IT>7!E;F%M93L)"2\J
M('1H92!T>7!E8V%S="`J+PHK(`E,:7-T"2`@("II;F1I<F5C=&EO;CL)+RH@
I87)R87D@<F5F97)E;F-E<R`J+PH@('T(at)4&%R86U.;SL*("`*("`O*(at)H`
`
end

Responses

pgsql-hackers by date

Next:From: Robert BruccoleriDate: 1998-10-02 12:46:26
Subject: Re: Having problems compiling postgres on IRIX
Previous:From: D'Arcy J.M. CainDate: 1998-10-02 11:29:47
Subject: Re: [HACKERS] Open 6.4 items

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group