Permalink
Browse files

+ use ST_xxx

  • Loading branch information...
1 parent 51bf0ef commit 47e5b3c95eabd1236647d30c55f720baec44216d @artemp artemp committed with Dane Springmeyer Jul 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 utils/pgsql2sqlite/pgsql2sqlite.hpp
@@ -136,7 +136,7 @@ void pgsql2sqlite(Connection conn,
// add AsBinary(<geometry_column>) modifier
std::string select_sql_str = select_sql.str();
- boost::algorithm::replace_all(select_sql_str, "\"" + geom_col + "\"","AsBinary(" + geom_col+") as " + geom_col);
+ boost::algorithm::replace_all(select_sql_str, "\"" + geom_col + "\"","ST_AsBinary(" + geom_col+") as " + geom_col);
#ifdef MAPNIK_DEBUG
std::cout << select_sql_str << "\n";

0 comments on commit 47e5b3c

Please sign in to comment.