Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ext/pdo_mysql/mysql_statement.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,11 @@ static int pdo_mysql_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_da
PDO_DBG_RETURN(1);

case IS_LONG:
#if SIZEOF_ZEND_LONG==8
b->buffer_type = MYSQL_TYPE_LONGLONG;
#elif SIZEOF_ZEND_LONG==4
b->buffer_type = MYSQL_TYPE_LONG;
#endif /* SIZEOF_LONG */
b->buffer = &Z_LVAL_P(parameter);
PDO_DBG_RETURN(1);

Expand Down