Skip to content

Commit

Permalink
Fixed error when using PDO::ATTR_STRINGIFY_FETCHES (#1468)
Browse files Browse the repository at this point in the history
* fix accept PDO_ATTR_STRINGIFY_FETCHES to set_attr on after 8.1.22 and after 8.2.9 php version

* try to put it back

* fix accept PDO_ATTR_STRINGIFY_FETCHES to set_attr on after 8.1.22 and after 8.2.9 php version
  • Loading branch information
SakiTakamachi authored Aug 9, 2023
1 parent d79a62a commit c648caf
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 c648caf

Please sign in to comment.