summaryrefslogtreecommitdiff
path: root/ext/pgsql/pgsql.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2006-09-15 19:47:50 +0000
committerIlia Alshanetsky <iliaa@php.net>2006-09-15 19:47:50 +0000
commit2cc1f53f3b2c52f260602be6f35e7aa88047951f (patch)
treeb1d3bda138cc60f29d22c826b859753f22fa4c9a /ext/pgsql/pgsql.c
parente299095ca142c39be5a68403806cf1c0c7932dc3 (diff)
downloadphp-git-2cc1f53f3b2c52f260602be6f35e7aa88047951f.tar.gz
Added a check for PQftable() function
Diffstat (limited to 'ext/pgsql/pgsql.c')
-rw-r--r--ext/pgsql/pgsql.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index 22d855cd75..1d353e8a6d 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -154,7 +154,9 @@ zend_function_entry pgsql_functions[] = {
PHP_FE(pg_field_type_oid, NULL)
PHP_FE(pg_field_prtlen, NULL)
PHP_FE(pg_field_is_null,NULL)
+#ifdef HAVE_PQFTABLE
PHP_FE(pg_field_table, NULL)
+#endif
/* async message function */
PHP_FE(pg_get_notify, NULL)
PHP_FE(pg_get_pid, NULL)
@@ -1698,6 +1700,7 @@ static char *get_field_name(PGconn *pgsql, Oid oid, HashTable *list TSRMLS_DC)
}
/* }}} */
+#ifdef HAVE_PQFTABLE
/* {{{ proto mixed pg_field_table(resource result, int field_number[, bool oid_only])
Returns the name of the table field belongs to, or table's oid if oid_only is true */
PHP_FUNCTION(pg_field_table)
@@ -1785,7 +1788,8 @@ PHP_FUNCTION(pg_field_table)
}
}
-/* }}} */
+/* }}} */
+#endif
#define PHP_PG_FIELD_NAME 1
#define PHP_PG_FIELD_SIZE 2