Fixed the formatting
This commit is contained in:
parent
0b5ceb001d
commit
4747537a96
|
@ -1856,14 +1856,14 @@ SQLSMALLINT default_c_type( _Inout_ sqlsrv_stmt* stmt, _In_opt_ SQLULEN paramno,
|
||||||
break;
|
break;
|
||||||
case IS_TRUE:
|
case IS_TRUE:
|
||||||
case IS_FALSE:
|
case IS_FALSE:
|
||||||
sql_c_type = SQL_C_SLONG;
|
sql_c_type = SQL_C_SLONG;
|
||||||
break;
|
break;
|
||||||
case IS_LONG:
|
case IS_LONG:
|
||||||
//ODBC 64-bit long and integer type are 4 byte values.
|
//ODBC 64-bit long and integer type are 4 byte values.
|
||||||
if ( ( Z_LVAL_P( param_z ) < INT_MIN ) || ( Z_LVAL_P( param_z ) > INT_MAX ) ) {
|
if ((Z_LVAL_P(param_z) < INT_MIN) || (Z_LVAL_P(param_z) > INT_MAX)) {
|
||||||
sql_c_type = SQL_C_SBIGINT;
|
sql_c_type = SQL_C_SBIGINT;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
sql_c_type = SQL_C_SLONG;
|
sql_c_type = SQL_C_SLONG;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -1929,12 +1929,12 @@ void default_sql_type( _Inout_ sqlsrv_stmt* stmt, _In_opt_ SQLULEN paramno, _In_
|
||||||
sql_type = SQL_INTEGER;
|
sql_type = SQL_INTEGER;
|
||||||
break;
|
break;
|
||||||
case IS_LONG:
|
case IS_LONG:
|
||||||
//ODBC 64-bit long and integer type are 4 byte values.
|
//ODBC 64-bit long and integer type are 4 byte values.
|
||||||
if ( ( Z_LVAL_P( param_z ) < INT_MIN ) || ( Z_LVAL_P( param_z ) > INT_MAX ) ) {
|
if ((Z_LVAL_P(param_z) < INT_MIN) || (Z_LVAL_P(param_z) > INT_MAX)) {
|
||||||
sql_type = SQL_BIGINT;
|
sql_type = SQL_BIGINT;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
sql_type = SQL_INTEGER;
|
sql_type = SQL_INTEGER;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case IS_DOUBLE:
|
case IS_DOUBLE:
|
||||||
|
|
Loading…
Reference in a new issue