diff options
author | Yasuo Ohgaki <yohgaki@php.net> | 2013-07-11 12:23:11 +0900 |
---|---|---|
committer | Yasuo Ohgaki <yohgaki@php.net> | 2013-07-11 12:23:11 +0900 |
commit | 8679bffaca58cf03737ab6199a2ef3e8712b4ee2 (patch) | |
tree | 483c4c54f3a998c8533cf8b650e4c66c69c4d9e5 /ext/pdo_pgsql | |
parent | 2acc38627092123ac462f3a23780bf887bf69286 (diff) | |
download | php-git-8679bffaca58cf03737ab6199a2ef3e8712b4ee2.tar.gz |
Fixed meta data retrieve when OID is larger than 2^31
Diffstat (limited to 'ext/pdo_pgsql')
-rw-r--r-- | ext/pdo_pgsql/pgsql_statement.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_pgsql/pgsql_statement.c b/ext/pdo_pgsql/pgsql_statement.c index d58eebf8f4..3ef89196de 100644 --- a/ext/pdo_pgsql/pgsql_statement.c +++ b/ext/pdo_pgsql/pgsql_statement.c @@ -587,7 +587,7 @@ static int pgsql_stmt_get_column_meta(pdo_stmt_t *stmt, long colno, zval *return add_assoc_long(return_value, "pgsql:oid", S->cols[colno].pgsql_type); /* Fetch metadata from Postgres system catalogue */ - spprintf(&q, 0, "SELECT TYPNAME FROM PG_TYPE WHERE OID=%d", S->cols[colno].pgsql_type); + spprintf(&q, 0, "SELECT TYPNAME FROM PG_TYPE WHERE OID=%u", S->cols[colno].pgsql_type); res = PQexec(S->H->server, q); efree(q); |