update import to public name

master
Oliver Tonnhofer 2013-06-17 15:38:00 +02:00
parent 51b0c2ef4e
commit e520b515ab
1 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import (
"database/sql"
"errors"
"fmt"
pq "github.com/olt/pqbulk"
pq "github.com/olt/pq"
"goposm/database"
"goposm/logging"
"goposm/mapping"
@ -50,8 +50,8 @@ func createTable(tx *sql.Tx, spec TableSpec) error {
if geomType == "POLYGON" {
geomType = "GEOMETRY" // for multipolygon support
}
sql = fmt.Sprintf("SELECT AddGeometryColumn('%s', '%s', 'geometry', %d, '%s', 2);",
spec.Schema, spec.Name, 0, geomType)
sql = fmt.Sprintf("SELECT AddGeometryColumn('%s', '%s', 'geometry', -1, '%s', 2);",
spec.Schema, spec.Name, geomType)
row := tx.QueryRow(sql)
var void interface{}
err = row.Scan(&void)