summaryrefslogtreecommitdiff
path: root/ext/mssql
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2001-05-08 19:24:14 +0000
committerFrank M. Kromann <fmk@php.net>2001-05-08 19:24:14 +0000
commit8a030b980931c4dad51b894166ae2cda8a303443 (patch)
tree70fa626e041785a31281412baef7302ab2ae862d /ext/mssql
parentaaebbecdcf0e7b90dcac64d3fba2d2eacdecbb91 (diff)
downloadphp-git-8a030b980931c4dad51b894166ae2cda8a303443.tar.gz
Fixing the use of compatibility mode. When the flag is off the system should return correct PHP types (default) when the flag is on strings will be returned for all data types.
Diffstat (limited to 'ext/mssql')
-rw-r--r--ext/mssql/php_mssql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c
index 8c0b13d2fd..bf5c77e555 100644
--- a/ext/mssql/php_mssql.c
+++ b/ext/mssql/php_mssql.c
@@ -231,9 +231,9 @@ static void php_mssql_init_globals(zend_mssql_globals *mssql_globals)
MS_SQL_G(num_persistent) = 0;
if (cfg_get_long("mssql.compatability_mode", &compatability_mode) == SUCCESS) {
if (compatability_mode) {
- MS_SQL_G(get_column_content) = php_mssql_get_column_content_with_type;
- } else {
MS_SQL_G(get_column_content) = php_mssql_get_column_content_without_type;
+ } else {
+ MS_SQL_G(get_column_content) = php_mssql_get_column_content_with_type;
}
}
}