Skip to content

Commit

Permalink
fix accept PDO_ATTR_STRINGIFY_FETCHES to set_attr on after 8.1.22 and…
Browse files Browse the repository at this point in the history
… after 8.2.9 php version
  • Loading branch information
SakiTakamachi committed Aug 4, 2023
1 parent d79a62a commit 3651a6e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/pdo_sqlsrv/pdo_dbh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1323,6 +1323,14 @@ bool pdo_sqlsrv_dbh_set_attr(_Inout_ pdo_dbh_t *dbh, _In_ zend_long attr, _Inout
break;
#endif

#if (PHP_VERSION_ID >= 80122 && PHP_VERSION_ID < 80200) || PHP_VERSION_ID >= 80209
case PDO_ATTR_STRINGIFY_FETCHES:
{
// do nothing
}
break;
#endif

// Not supported
case PDO_ATTR_FETCH_TABLE_NAMES:
case PDO_ATTR_FETCH_CATALOG_NAMES:
Expand Down

0 comments on commit 3651a6e

Please sign in to comment.