Forum OpenACS Development: Re: get_value__parameter_id error

Collapse
Posted by Cesareo Garci­a Rodicio on
I've checked if this function exists in my database (and it doesn't)

 \df get_value*
\df get_value*
                       List of functions
 Schema | Name | Result data type | Argument data types | Type
--------+------+------------------+---------------------+------
(0 rows)

Seeking with these problem, I see it has already reported but ...

I check apm-create.file and it seems to be fine;

> grep "parameter_id =" acs-kernel/sql/postgresql/apm-create.sql
and parameter_id = v_parameter_id; and parameter_id = v_parameter_id; where parameter_id = v_parameter_id where parameter_id = v_parameter_id
Collapse
Posted by Gustaf Neumann on
try the following when calling psql with you database name:
\x
\df+ apm__get_value
you should see two functions with different argument types.
-g
Collapse
Posted by Cesareo Garci­a Rodicio on
Yes, two functions:

openacs=# \df apm__get_value*
\df apm__get_value*
List of functions
-[ RECORD 1 ]-------+-------------------------------------
Schema              | public
Name                | apm__get_value
Result data type    | character varying
Argument data types | character varying, character varying
Type                | normal
-[ RECORD 2 ]-------+-------------------------------------
Schema              | public
Name                | apm__get_value
Result data type    | character varying
Argument data types | integer, character varying
Type                | normal
Collapse
Posted by Gustaf Neumann on
The bug was introduced between OpenACS 5.6.0 and OpenACS 5.7.0 and effects only upgrades. i wonder, why we don't see more complaints about this. Anyhow, i've added an upgrade script to the oacs-5-8 branch. Please either upgrade from CVS, or wait until tomorrow and do an "upgrade from repository" when you are using OpenACS 5.8.0.

-gustaf

Collapse
Posted by Cesareo Garci­a Rodicio on
As you wish. It sounds "more general" to use "upgrade from repository" but I can test whether option you want.
Collapse
Posted by Gustaf Neumann on
please try tomorrow "upgrade from repo" .. -g
Collapse
Posted by Cesareo Garci­a Rodicio on
Update Kernel:
acs-admin ... Install Software ... Upgrade from Repository

Kernel from 5.8.1d3 to 5.8.1d4

Restart and ... voilá 😊 Thanks