#1346: fix misuse of quote_literal causing topology, topology, topology, topology

git-svn-id: http://svn.osgeo.org/postgis/trunk@8299 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Regina Obe 2011-12-02 17:44:26 +00:00
parent 57248139f7
commit efbea175da

View file

@ -26,7 +26,7 @@ DECLARE
var_cur_search_path text;
BEGIN
SELECT reset_val INTO var_cur_search_path FROM pg_settings WHERE name = 'search_path';
IF var_cur_search_path LIKE '%' || quote_literal(a_schema_name) || '%' THEN
IF var_cur_search_path LIKE '%' || quote_ident(a_schema_name) || '%' THEN
var_result := a_schema_name || ' already in database search_path';
ELSE
EXECUTE 'ALTER DATABASE ' || current_database() || ' SET search_path = ' || var_cur_search_path || ', ' || quote_ident(a_schema_name);