Reverted the changes

This commit is contained in:
Jenny Tam 2018-05-15 15:57:47 -07:00
parent 4c7c08515d
commit 0b5ceb001d
2 changed files with 1 additions and 9 deletions

View file

@ -1864,11 +1864,7 @@ SQLSMALLINT default_c_type( _Inout_ sqlsrv_stmt* stmt, _In_opt_ SQLULEN paramno,
sql_c_type = SQL_C_SBIGINT;
}
else {
#ifdef ZEND_ENABLE_ZVAL_LONG64
sql_c_type = SQL_C_SBIGINT;
#else
sql_c_type = SQL_C_SLONG;
#endif
}
break;
case IS_DOUBLE:
@ -1938,11 +1934,7 @@ void default_sql_type( _Inout_ sqlsrv_stmt* stmt, _In_opt_ SQLULEN paramno, _In_
sql_type = SQL_BIGINT;
}
else {
#ifdef ZEND_ENABLE_ZVAL_LONG64
sql_type = SQL_BIGINT;
#else
sql_type = SQL_INTEGER;
#endif
}
break;
case IS_DOUBLE:

View file

@ -66,7 +66,7 @@ if (strtoupper(substr(PHP_OS, 0, 3)) === 'LIN') {
$sql_callSP = $set_no_count . "{call $procName(?)}";
// Initialize the output parameter to any number
$outParam = -1;
$outParam = 1;
$params = array(array(&$outParam, SQLSRV_PARAM_OUT));
$stmt = sqlsrv_query($conn, $sql_callSP, $params);
if (!$stmt) {