Skip to content

Commit

Permalink
Fixed the returned values for PDOStatement::getColumnMeta
Browse files Browse the repository at this point in the history
  • Loading branch information
yitam committed Mar 7, 2019
1 parent d60748e commit a1c4211
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/pdo_sqlsrv/pdo_stmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ int pdo_sqlsrv_stmt_get_attr( _Inout_ pdo_stmt_t *stmt, _In_ zend_long attr, _In
// colno - The index of the field for which to return the metadata.
// return_value - zval* consisting of the metadata.
// Return:
// 0 for failure, 1 for success.
// FAILURE for failure, SUCCESS for success.
int pdo_sqlsrv_stmt_get_col_meta( _Inout_ pdo_stmt_t *stmt, _In_ zend_long colno, _Inout_ zval *return_value TSRMLS_DC)
{
PDO_RESET_STMT_ERROR;
Expand Down Expand Up @@ -1096,14 +1096,14 @@ int pdo_sqlsrv_stmt_get_col_meta( _Inout_ pdo_stmt_t *stmt, _In_ zend_long colno
}
catch( core::CoreException& ) {

return 0;
return FAILURE;
}
catch(...) {

DIE( "pdo_sqlsrv_stmt_get_col_meta: Unknown exception occurred while retrieving metadata." );
}

return 1;
return SUCCESS;
}


Expand Down

0 comments on commit a1c4211

Please sign in to comment.