Commit cbb00510 authored by Jean-Benoist Leger's avatar Jean-Benoist Leger

new pqxx don't want type for prepared statements

parent 188aaf6a
......@@ -27,8 +27,8 @@ class database
pqxx::connection dbw;
database(const std::string & s_filename,unsigned int jid_i) : db(s_filename),txn(db),dbw(s_filename),jid(jid_i) {
db.prepare("get_node","SELECT ST_X(geom),ST_Y(geom),height FROM rv_nodes WHERE id=$1;")("bigint");
db.prepare("get_adj","SELECT to_id FROM rv_edges WHERE from_id=$1;")("bigint");
db.prepare("get_node","SELECT ST_X(geom),ST_Y(geom),height FROM rv_nodes WHERE id=$1;");
db.prepare("get_adj","SELECT to_id FROM rv_edges WHERE from_id=$1;");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment