| 233 | } |
| 234 | |
| 235 | static u64 db_postgres_last_insert_id(struct db_stmt *stmt) |
| 236 | { |
| 237 | PGresult *res = PQexec(stmt->db->conn, "SELECT lastval()"); |
| 238 | int id = atoi(PQgetvalue(res, 0, 0)); |
| 239 | PQclear(res); |
| 240 | return id; |
| 241 | } |
| 242 | |
| 243 | static size_t db_postgres_count_changes(struct db_stmt *stmt) |
| 244 | { |
nothing calls this directly
no outgoing calls
no test coverage detected