Project

General

Profile

« Previous | Next » 

Revision 12994

bugfix: schemas/vegbien.sql: schemas/vegbien.sql(): need to util.use_schema(schema_anchor) before initializing vars that use own-schema functions

View differences:

trunk/schemas/vegbien.sql
1364 1364
/* function option search_path is needed to limit the effects of
1365 1365
`SET LOCAL search_path` to the current function */
1366 1366
DECLARE
1367
	live_datasource text := rm_version_suffix(datasource);
1367
	live_datasource text;
1368 1368
BEGIN
1369 1369
	PERFORM util.use_schema(schema_anchor);
1370 1370
	
1371
	live_datasource = rm_version_suffix(datasource);
1372
	
1371 1373
	-- don't datasource_rm() the datasource to publish!
1372 1374
	IF live_datasource = datasource THEN RETURN; END IF;
1373 1375
	

Also available in: Unified diff