summaryrefslogtreecommitdiff
path: root/ext/pdo_pgsql/pgsql_driver.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-06-28 02:09:53 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-06-28 02:09:53 +0000
commitf04cbae3fda3adb96f579f19cd1a92c80be71af1 (patch)
treee73d6728cecf1b076b5a39aac703d4fc4bdc237c /ext/pdo_pgsql/pgsql_driver.c
parent990aa7456e55039f91600aefa0a610b8e319a64b (diff)
downloadphp-git-f04cbae3fda3adb96f579f19cd1a92c80be71af1.tar.gz
fixed oid retrieval.
Diffstat (limited to 'ext/pdo_pgsql/pgsql_driver.c')
-rw-r--r--ext/pdo_pgsql/pgsql_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_pgsql/pgsql_driver.c b/ext/pdo_pgsql/pgsql_driver.c
index f0531db7ff..b63b20f125 100644
--- a/ext/pdo_pgsql/pgsql_driver.c
+++ b/ext/pdo_pgsql/pgsql_driver.c
@@ -215,7 +215,7 @@ static char *pdo_pgsql_last_insert_id(pdo_dbh_t *dbh, const char *name, unsigned
/* TODO: if name != NULL, pull out last value for that sequence/column */
- *len = spprintf(&id, 0, "%lld", H->pgoid);
+ *len = spprintf(&id, 0, "%ld", H->pgoid);
return id;
}