Index: openacs-4/packages/acs-kernel/sql/postgresql/apm-create.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/postgresql/apm-create.sql,v diff -u -N -r1.25 -r1.25.2.1 --- openacs-4/packages/acs-kernel/sql/postgresql/apm-create.sql 25 Jan 2002 23:02:42 -0000 1.25 +++ openacs-4/packages/acs-kernel/sql/postgresql/apm-create.sql 15 May 2002 22:30:04 -0000 1.25.2.1 @@ -2327,8 +2327,8 @@ v_path := substr(upgrade_p__path, instr(upgrade_p__path, ''/'', -1) + 1); -- Remove the extension, if it is .sql. - v_pos1 := position(''.'' in v_path); - if v_pos1 > 0 and substr(v_path, v_pos1) = ''.sql'' then + v_pos1 := position(''.sql'' in v_path); + if v_pos1 > 0 then v_path := substr(v_path, 1, v_pos1 - 1); end if;