diff options
author | Marc Boeren <mboeren@php.net> | 2002-10-24 14:26:14 +0000 |
---|---|---|
committer | Marc Boeren <mboeren@php.net> | 2002-10-24 14:26:14 +0000 |
commit | acea3ab036a927a74acbcf9dd16a6a6aa6e7765b (patch) | |
tree | ff7a2b845fcd13164b71d0c93c0b6b995fa05550 /ext | |
parent | b5783184ea0fd46aaa07503373b71680baa822e6 (diff) | |
download | php-git-acea3ab036a927a74acbcf9dd16a6a6aa6e7765b.tar.gz |
Changed the dbx_oci8 behaviour to return lowercase column-names,
which is a hack but at least it makes it easier for users
to create portable apps.
# Perhaps this should be controlled by a (.ini?) directive or define
# which determines the change (toupper, tolower, nochange)?
Diffstat (limited to 'ext')
-rw-r--r-- | ext/dbx/dbx_oci8.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/dbx/dbx_oci8.c b/ext/dbx/dbx_oci8.c index efdfbea472..95216487f7 100644 --- a/ext/dbx/dbx_oci8.c +++ b/ext/dbx/dbx_oci8.c @@ -24,6 +24,7 @@ #include "dbx.h" #include "dbx_oci8.h" +#include "ext/standard/php_string.h" /* for auto-change column names to lowercase*/ #define OCI_ASSOC 1<<0 #define OCI_NUM 1<<1 @@ -178,6 +179,7 @@ int dbx_oci8_getcolumnname(zval **rv, zval **result_handle, long column_index, I return 0; } FREE_ZVAL(zval_column_index); + php_strtolower(Z_STRVAL_P(returned_zval), Z_STRLEN_P(returned_zval)); MOVE_RETURNED_TO_RV(rv, returned_zval); return 1; } |