]> granicus.if.org Git - postgis/commitdiff
Do not mess with search_path when installing comments (#1723)
authorSandro Santilli <strk@keybit.net>
Tue, 27 Mar 2012 17:06:20 +0000 (17:06 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 27 Mar 2012 17:06:20 +0000 (17:06 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9556 b70326c6-7e19-0410-871a-916f4a2858ee

doc/xsl/topology_comments.sql.xsl

index 13ced779ce55d1611861bf4b4d5366f5bbc4721e..08e8853af80b764523b434a5fb50c68ee6ff70c6 100644 (file)
@@ -12,7 +12,6 @@
 \r
        <!-- We deal only with the reference chapter -->\r
         <xsl:template match="/">\r
-set search_path=topology,public,pg_catalog;\r
                 <xsl:apply-templates select="/book/chapter[@id='Topology']" />\r
         </xsl:template>\r
 \r
@@ -34,17 +33,17 @@ set search_path=topology,public,pg_catalog;
                <xsl:choose>\r
 <!-- If this is a postgis type grab the ref entry summary and refname to make type comment -->\r
 <xsl:when test="parent::sect1[contains(@id,'Types')]">\r
-       COMMENT ON TYPE <xsl:value-of select="refnamediv/refname" /> IS 'postgis type: <xsl:value-of select='$comment' />';\r
+COMMENT ON TYPE topology.<xsl:value-of select="refnamediv/refname" /> IS 'postgis type: <xsl:value-of select='$comment' />';\r
 </xsl:when>\r
 <xsl:when test="parent::sect1[contains(@id,'Domain')]">\r
-       COMMENT ON DOMAIN <xsl:value-of select="refnamediv/refname" /> IS 'postgis domain: <xsl:value-of select='$comment' />';\r
+COMMENT ON DOMAIN topology.<xsl:value-of select="refnamediv/refname" /> IS 'postgis domain: <xsl:value-of select='$comment' />';\r
 </xsl:when>\r
                </xsl:choose>\r
 <!-- For each function prototype generate the DDL comment statement\r
        If its input is a geometry set - we know it is an aggregate function rather than a regular function \r
        Do not output OUT params since they define output rather than act as input and do not put a comma after argument just before an OUT parameter -->\r
                <xsl:for-each select="refsynopsisdiv/funcsynopsis/funcprototype">\r
-COMMENT ON <xsl:choose><xsl:when test="contains(paramdef/type,' set')">AGGREGATE</xsl:when><xsl:otherwise>FUNCTION</xsl:otherwise></xsl:choose><xsl:text> </xsl:text> <xsl:value-of select="funcdef/function" />(<xsl:for-each select="paramdef"><xsl:choose><xsl:when test="count(parameter) &gt; 0"> \r
+COMMENT ON <xsl:choose><xsl:when test="contains(paramdef/type,' set')">AGGREGATE</xsl:when><xsl:otherwise>FUNCTION</xsl:otherwise></xsl:choose><xsl:text></xsl:text> topology.<xsl:value-of select="funcdef/function" />(<xsl:for-each select="paramdef"><xsl:choose><xsl:when test="count(parameter) &gt; 0"> \r
 <xsl:choose><xsl:when test="contains(parameter,'OUT')"></xsl:when><xsl:when test="contains(type,'topoelement set')">topoelement</xsl:when><xsl:otherwise><xsl:value-of select="type" /></xsl:otherwise></xsl:choose><xsl:if test="position()&lt;last() and not(contains(parameter,'OUT')) and not(contains(following-sibling::paramdef[1],'OUT'))"><xsl:text>, </xsl:text></xsl:if></xsl:when>\r
 </xsl:choose></xsl:for-each>) IS '<xsl:call-template name="listparams"><xsl:with-param name="func" select="." /></xsl:call-template> <xsl:value-of select='$comment' />';\r
                        </xsl:for-each>\r