]> granicus.if.org Git - postgis/commitdiff
Fix index creation in loaders
authorSandro Santilli <strk@keybit.net>
Mon, 7 Jul 2014 08:58:17 +0000 (08:58 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 7 Jul 2014 08:58:17 +0000 (08:58 +0000)
The bug was introduced with previous commit (typo)
See #2811

git-svn-id: http://svn.osgeo.org/postgis/trunk@12749 b70326c6-7e19-0410-871a-916f4a2858ee

loader/shp2pgsql-core.c
raster/loader/raster2pgsql.c

index 38b1eec8333d2fefa4ea94ee7571e371172cdf5d..106022b3d0d639281096430a0a11d77f39a940bd 100644 (file)
@@ -1931,7 +1931,7 @@ ShpLoaderGetSQLFooter(SHPLOADERSTATE *state, char **strfooter)
        /* Create gist index if specified and not in "prepare" mode */
        if (state->config->createindex)
        {
-               stringbuffer_aprintf(sb, "CREATE INDEX ON ", state->config->table, state->geo_col);
+               stringbuffer_aprintf(sb, "CREATE INDEX ON ");
                /* Schema is optional, include if present. */
                if (state->config->schema)
                {
index 5f240fc1a67fd8ada85be9203066a1130c7e94c9..d9fe9a167b04708dbe318939181263beb7f6fb95 100644 (file)
@@ -1066,8 +1066,6 @@ create_index(
                return 0;
        }
        sprintf(sql, "CREATE INDEX ON %s%s USING gist (st_convexhull(%s))%s%s;",
-               _table,
-               _column,
                (schema != NULL ? schema : ""),
                table,
                column,