Forum OpenACS Q&A: Re: AOLserver 3.5.1

Collapse
2: Re: AOLserver 3.5.1 (response to 1)
Posted by Dan Wickstrom on
Where is that decode function defined? I have a fresh install of the 4.6 branch, and I don't have a decode function that matches that function signature:

dotlrn=# select decode(count(*),0,0,1) from secret_tokens;
ERROR:  Function 'decode(int8, int4, int4, int4)' does not exist
        Unable to identify a function that satisfies the given argument types
        You may need to add explicit typecasts
dotlrn=# select version();
                             version                              
------------------------------------------------------------------
 PostgreSQL 7.2.1 on sparc-sun-solaris2.8, compiled by GCC 2.95.3
(1 row)

dotlrn=# 


Collapse
6: Re: AOLserver 3.5.1 (response to 2)
Posted by Richard Hamilton on
Dan,
This may be no help to you but I have openacs-4-6 installed and the 'decode' function is present in postgres (\df at psql command line).
I have been looking for some documentation to tell me what it does but have not yet found any.
Regards Richard