mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
Simplify code
This commit is contained in:
parent
183ed5b686
commit
3eb387155a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user