зеркало из https://github.com/microsoft/msphpsql.git
Fixed the formatting
This commit is contained in:
Родитель
0b5ceb001d
Коммит
4747537a96
|
@ -1856,14 +1856,14 @@ SQLSMALLINT default_c_type( _Inout_ sqlsrv_stmt* stmt, _In_opt_ SQLULEN paramno,
|
|||
break;
|
||||
case IS_TRUE:
|
||||
case IS_FALSE:
|
||||
sql_c_type = SQL_C_SLONG;
|
||||
break;
|
||||
sql_c_type = SQL_C_SLONG;
|
||||
break;
|
||||
case IS_LONG:
|
||||
//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 ) ) {
|
||||
sql_c_type = SQL_C_SBIGINT;
|
||||
}
|
||||
else {
|
||||
//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)) {
|
||||
sql_c_type = SQL_C_SBIGINT;
|
||||
}
|
||||
else {
|
||||
sql_c_type = SQL_C_SLONG;
|
||||
}
|
||||
break;
|
||||
|
@ -1929,12 +1929,12 @@ void default_sql_type( _Inout_ sqlsrv_stmt* stmt, _In_opt_ SQLULEN paramno, _In_
|
|||
sql_type = SQL_INTEGER;
|
||||
break;
|
||||
case IS_LONG:
|
||||
//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 ) ) {
|
||||
sql_type = SQL_BIGINT;
|
||||
}
|
||||
else {
|
||||
sql_type = SQL_INTEGER;
|
||||
//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)) {
|
||||
sql_type = SQL_BIGINT;
|
||||
}
|
||||
else {
|
||||
sql_type = SQL_INTEGER;
|
||||
}
|
||||
break;
|
||||
case IS_DOUBLE:
|
||||
|
|
Загрузка…
Ссылка в новой задаче