diff options
Diffstat (limited to 'src/test/regress/sql/create_aggregate.sql')
-rw-r--r-- | src/test/regress/sql/create_aggregate.sql | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/test/regress/sql/create_aggregate.sql b/src/test/regress/sql/create_aggregate.sql index 046f945738b..5d42ed057e3 100644 --- a/src/test/regress/sql/create_aggregate.sql +++ b/src/test/regress/sql/create_aggregate.sql @@ -4,21 +4,20 @@ -- all functions CREATEd CREATE AGGREGATE newavg ( - sfunc1 = int4pl, basetype = int4, stype1 = int4, - sfunc2 = int4inc, stype2 = int4, - finalfunc = int4div, - initcond1 = '0', initcond2 = '0' + sfunc = int4_accum, basetype = int4, stype = _numeric, + finalfunc = numeric_avg, + initcond1 = '{0,0,0}' ); --- sfunc1 (value-dependent) only +-- without finalfunc; test obsolete spellings 'sfunc1' etc CREATE AGGREGATE newsum ( sfunc1 = int4pl, basetype = int4, stype1 = int4, initcond1 = '0' ); --- sfunc2 (value-independent) only +-- value-independent transition function CREATE AGGREGATE newcnt ( - sfunc2 = int4inc, basetype = int4, stype2 = int4, - initcond2 = '0' + sfunc = int4inc, basetype = 'any', stype = int4, + initcond = '0' ); |