Results, such as RETURNING, from uncomitted execs?
问题 With libpqxx, is it possible for one prepared statement that exec s but has not yet been commit ted to store results in a result for use in later prepared statements? If so, how can this be done? Code I've stripped it down for readability, but this is essentially what I'm trying to do: void prepare_write_parent_table(connection_base &c){ try { c.prepare("write_parent_table", "INSERT INTO parent_table (column_1) " "SELECT $1 " "RETURNING id" ) ("character", pqxx::prepare::treat_string); }