Permalink
Browse files

+ use ST_xxx

  • Loading branch information...
1 parent 134dc5b commit e69c44e3d3e8fe364c806825b1782272131fbf61 @artemp artemp committed Jul 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 utils/pgsql2sqlite/pgsql2sqlite.hpp
@@ -115,7 +115,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 e69c44e

Please sign in to comment.