Skip to content

Commit

Permalink
Fix issue #35
Browse files Browse the repository at this point in the history
  • Loading branch information
yitam committed Feb 10, 2017
1 parent da36767 commit 471da9b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/pdo_sqlsrv/pdo_stmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,10 @@ int pdo_sqlsrv_stmt_get_col_data(pdo_stmt_t *stmt, int colno,

pdo_bound_param_data* bind_data = NULL;
bind_data = reinterpret_cast<pdo_bound_param_data*>(zend_hash_index_find_ptr(stmt->bound_columns, colno));
if (bind_data == NULL) {
// can't find by index then try searching by name
bind_data = reinterpret_cast<pdo_bound_param_data*>(zend_hash_find_ptr(stmt->bound_columns, stmt->columns[colno].name));
}

if( bind_data != NULL && !Z_ISUNDEF(bind_data->driver_params) ) {

Expand Down

0 comments on commit 471da9b

Please sign in to comment.