I'm trying to insert a point into a Postgresql table with c++. This is what I have so far:
const char * paramValues[1];
paramValues[0] = "{100,200}";
res = PQexecParams(conn, "insert into test (pt) values ($1::point)", 1, NULL, paramValues, NULL, NULL, 0);
It gives the error: "invalid input error for type point"
What should I be using instead of {100,200}
? I've also tried paramValues[0] = "point(100,200)";