summaryrefslogtreecommitdiff
path: root/ext/pdo_pgsql
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-11-29 18:17:46 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-11-29 18:17:46 +0000
commitd79e01e2112a06f5e4070c61a13d3ee693bfd553 (patch)
tree6b7bd8cd276d165892c43859c87d4fad9b95842a /ext/pdo_pgsql
parent37661c8b39d0a705b951bc0c3254514d4f04a23e (diff)
downloadphp-git-d79e01e2112a06f5e4070c61a13d3ee693bfd553.tar.gz
Fixed compiler warnings
Diffstat (limited to 'ext/pdo_pgsql')
-rw-r--r--ext/pdo_pgsql/pgsql_driver.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/pdo_pgsql/pgsql_driver.c b/ext/pdo_pgsql/pgsql_driver.c
index b339a43837..65fb948675 100644
--- a/ext/pdo_pgsql/pgsql_driver.c
+++ b/ext/pdo_pgsql/pgsql_driver.c
@@ -210,11 +210,9 @@ static int pgsql_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len,
pdo_pgsql_stmt *S = ecalloc(1, sizeof(pdo_pgsql_stmt));
int scrollable;
#if HAVE_PQPREPARE
- PGresult *res;
int ret;
char *nsql = NULL;
int nsql_len = 0;
- ExecStatusType status;
#endif
S->H = H;
@@ -490,7 +488,7 @@ static PHP_METHOD(PDO, pgsqlLOBCreate)
if (lfd != InvalidOid) {
char *buf;
- spprintf(&buf, 0, "%lu", lfd);
+ spprintf(&buf, 0, "%lu", (long) lfd);
RETURN_STRING(buf, 0);
}