mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
Fixed build
This commit is contained in:
parent
ad10a538ee
commit
c69f100d0e
@ -271,13 +271,14 @@ static long pgsql_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRM
|
||||
pdo_pgsql_db_handle *H = (pdo_pgsql_db_handle *)dbh->driver_data;
|
||||
PGresult *res;
|
||||
long ret = 1;
|
||||
ExecStatusType qs;
|
||||
|
||||
if (!(res = PQexec(H->server, sql))) {
|
||||
/* fatal error */
|
||||
pdo_pgsql_error(dbh, PGRES_FATAL_ERROR, NULL);
|
||||
return -1;
|
||||
}
|
||||
ExecStatusType qs = PQresultStatus(res);
|
||||
qs = PQresultStatus(res);
|
||||
if (qs != PGRES_COMMAND_OK && qs != PGRES_TUPLES_OK) {
|
||||
pdo_pgsql_error(dbh, qs, pdo_pgsql_sqlstate(res));
|
||||
PQclear(res);
|
||||
|
Loading…
Reference in New Issue
Block a user