changeset 24 | 82cfdb6680d1 |
parent 23 | 1dee73ae4ad0 |
child 25 | 99a41f48e29b |
23:1dee73ae4ad0 | 24:82cfdb6680d1 |
---|---|
286 // do the query |
286 // do the query |
287 if (PQsendQuery(conn->pg_conn, command) == 0) |
287 if (PQsendQuery(conn->pg_conn, command) == 0) |
288 ERROR("PQsendQuery: %s", PQerrorMessage(conn->pg_conn)); |
288 ERROR("PQsendQuery: %s", PQerrorMessage(conn->pg_conn)); |
289 |
289 |
290 // handle it |
290 // handle it |
291 if (_evpq_handle_query(con)) |
291 if (_evpq_handle_query(conn)) |
292 goto error; |
292 goto error; |
293 |
293 |
294 // success |
294 // success |
295 return 0; |
295 return 0; |
296 |
296 |
306 // do the query |
306 // do the query |
307 if (PQsendQueryParams(conn->pg_conn, command, nParams, paramTypes, paramValues, paramLengths, paramFormats, resultFormat) == 0) |
307 if (PQsendQueryParams(conn->pg_conn, command, nParams, paramTypes, paramValues, paramLengths, paramFormats, resultFormat) == 0) |
308 ERROR("PQsendQueryParams: %s", PQerrorMessage(conn->pg_conn)); |
308 ERROR("PQsendQueryParams: %s", PQerrorMessage(conn->pg_conn)); |
309 |
309 |
310 // handle it |
310 // handle it |
311 if (_evpq_handle_query(con)) |
311 if (_evpq_handle_query(conn)) |
312 goto error; |
312 goto error; |
313 |
313 |
314 // success |
314 // success |
315 return 0; |
315 return 0; |
316 |
316 |