diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2008-01-29 01:17:30 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2008-01-29 01:17:30 +0000 |
commit | 3eb387155a0dd518e61e27ce1465794671fb7347 (patch) | |
tree | e5faa20bfbae498d1901516ded1ee921c7070235 /ext/pdo_pgsql | |
parent | 183ed5b68673ac9bf44774cdb98b38f099678221 (diff) | |
download | php-git-3eb387155a0dd518e61e27ce1465794671fb7347.tar.gz |
Simplify code
Diffstat (limited to 'ext/pdo_pgsql')
-rw-r--r-- | ext/pdo_pgsql/pgsql_statement.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ext/pdo_pgsql/pgsql_statement.c b/ext/pdo_pgsql/pgsql_statement.c index 197c3f5290..84af470f3c 100644 --- a/ext/pdo_pgsql/pgsql_statement.c +++ b/ext/pdo_pgsql/pgsql_statement.c @@ -631,18 +631,16 @@ static int pgsql_stmt_get_column_meta(pdo_stmt_t *stmt, long colno, zval *return /* Failed to get system catalogue, but return success * with the data we have collected so far */ - PQclear(res); - return 1; + goto done; } /* We want exactly one row returned */ if (1 != PQntuples(res)) { - PQclear(res); - return 1; + goto done; } add_assoc_string(return_value, "native_type", PQgetvalue(res, 0, 0), 1); - +done: PQclear(res); return 1; } |