]> granicus.if.org Git - postgis/commitdiff
Use quote_ident more...
authorSandro Santilli <strk@keybit.net>
Fri, 4 Feb 2011 17:26:20 +0000 (17:26 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 4 Feb 2011 17:26:20 +0000 (17:26 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6777 b70326c6-7e19-0410-871a-916f4a2858ee

topology/topology.sql.in.c

index b8ce05ccc7c3a264bce934c94ecb74c755217fd9..8c88a4843082e27cea592a4d1de3e3d95027b6f1 100644 (file)
@@ -556,8 +556,10 @@ BEGIN
        --
        -- Get new layer id from sequence
        --
-       FOR rec IN EXECUTE ''SELECT nextval('''''' ||
-               quote_ident(toponame) || ''.layer_id_seq'''')''
+       FOR rec IN EXECUTE ''SELECT nextval('' ||
+               quote_literal(
+                       quote_ident(toponame) || ''.layer_id_seq''
+               ) || '')''
        LOOP
                layer_id = rec.nextval;
        END LOOP;