summaryrefslogtreecommitdiff
path: root/ext/pdo_oci
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-03-18 22:06:31 +0000
committerAntony Dovgal <tony2001@php.net>2006-03-18 22:06:31 +0000
commit4e75cd55486cfba77bec9392424fcd9341e049e5 (patch)
treef2444f0fbd723058e8b935da904f40eb23a6ed3e /ext/pdo_oci
parentfa922fb51cbada2a1fa9aec5dd542979f13a456b (diff)
downloadphp-git-4e75cd55486cfba77bec9392424fcd9341e049e5.tar.gz
Added support for BINARY_DOUBLE and BINARY_FLOAT to PDO_OCI and OCI8 (also fixes bug #36764)
Diffstat (limited to 'ext/pdo_oci')
-rwxr-xr-xext/pdo_oci/oci_statement.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/pdo_oci/oci_statement.c b/ext/pdo_oci/oci_statement.c
index 46a8cea720..96723a05cf 100755
--- a/ext/pdo_oci/oci_statement.c
+++ b/ext/pdo_oci/oci_statement.c
@@ -545,6 +545,10 @@ static int oci_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) /* {{{ */
) {
/* should be big enough for most date formats and numbers */
S->cols[colno].datalen = 512;
+#if defined(SQLT_IBFLOAT) && defined(SQLT_IBDOUBLE)
+ } else if (dtype == SQLT_IBFLOAT || dtype == SQLT_IBDOUBLE) {
+ S->cols[colno].datalen = 1024;
+#endif
} else {
S->cols[colno].datalen = col->maxlen;
}