From 8a030b980931c4dad51b894166ae2cda8a303443 Mon Sep 17 00:00:00 2001 From: "Frank M. Kromann" Date: Tue, 8 May 2001 19:24:14 +0000 Subject: 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. --- ext/mssql/php_mssql.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/mssql/php_mssql.c') 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; } } } -- cgit v1.2.1