]> granicus.if.org Git - postgis/commitdiff
#1346: fix misuse of quote_literal causing topology, topology, topology, topology
authorRegina Obe <lr@pcorp.us>
Fri, 2 Dec 2011 17:44:26 +0000 (17:44 +0000)
committerRegina Obe <lr@pcorp.us>
Fri, 2 Dec 2011 17:44:26 +0000 (17:44 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8299 b70326c6-7e19-0410-871a-916f4a2858ee

topology/sql/manage/ManageHelper.sql

index 6950c25cb72844a909af15bbb5fac5c3ef2617e2..e1612ee7dec3e79d343b5f801cf009db5e08ca33 100644 (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);