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 -r1.27 -r1.28
--- openacs-4/packages/acs-kernel/sql/postgresql/apm-create.sql	17 Jul 2002 20:24:22 -0000	1.27
+++ openacs-4/packages/acs-kernel/sql/postgresql/apm-create.sql	17 Aug 2002 14:29:20 -0000	1.28
@@ -2345,8 +2345,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;
 
