Skip to content

Commit

Permalink
detect appveyor problem
Browse files Browse the repository at this point in the history
  • Loading branch information
yukiwongky committed Oct 17, 2017
1 parent 597d544 commit 6b223a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/shared/core_stmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,12 @@ void core_sqlsrv_bind_param( _Inout_ sqlsrv_stmt* stmt, _In_ SQLUSMALLINT param_
if( zval_was_null || zval_was_bool ) {
convert_to_long( param_z );
}
match = Z_TYPE_P( param_z ) == IS_LONG;
if( zval_was_long ){
convert_to_string( param_z );
}
else {
match = Z_TYPE_P(param_z) == IS_LONG;
}
break;
case SQLSRV_PHPTYPE_FLOAT:
if( zval_was_null ) {
Expand Down

0 comments on commit 6b223a7

Please sign in to comment.