Patch - please apply
Patch - please apply
От:
jwieck@debis.com (Jan Wieck)
Дата:
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@debis.com (Jan Wieck) #
begin 644 paramarray.diff
M9&EF9B`M8W(@0E&'!R
M+F,**BHJ('-R8RYO'!R+F,)1G)I($]C="`@,B`Q,CHU.3HP.2`Q.3DX"BHJ*BHJ
M*BHJ*BHJ*BHJ*@HJ*BH@,3(R+#$R."`J*BHJ"B`@"0D)"7!A7!E(#T@*$]I
M9"D@=&]I9#L*("`)"0D)<&%R86TM/G!A"`A/2!.24PI"B$@"0D)"0E["B$@"0D)
M"0D)05]);F1I8V5S("`J86D@/2`H05]);F1I8V5S("HI(&QF:7)S="AI9'@I
M.PHA(`D)"0D)"4YO9&4)("`@*FQE>'!R(#T@3E5,3"P*(2`)"0D)"0D)"2`@
M("IU97AP"P@<')E8V5D96YC92D["2\J(&UU7!E*'5E>'!R*2`A/2!)3E0T3TE$*0HA(`D)
M"0D)"0EE;&]G*$524D]2+"`B87)R87D@:6YD97@@97AP'!R(#T@=')A;G-F;W)M17AP7!E*&QE>'!R*2`A/2!)3E0T3TE$*0HA(`D)"0D)"0D)96QO9RA%4E)/4BP@
M(F%R5]R968H*$YO9&4@*BEP87)A;2P@<&YO+3YI;F1I
M7!E3F%M92`@("IT>7!E;F%M93L)"2\J
M('1H92!T>7!E8V%S="`J+PHK(`E,:7-T"2`@("II;F1IRe: [HACKERS] Patch - please apply
От:
Bruce Momjian <maillist@candle.pha.pa.us>
Дата:
Applied. > 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@debis.com (Jan Wieck) # -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026