Skip to content

Commit 3651a6e

Browse files
committed
fix accept PDO_ATTR_STRINGIFY_FETCHES to set_attr on after 8.1.22 and after 8.2.9 php version
1 parent d79a62a commit 3651a6e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source/pdo_sqlsrv/pdo_dbh.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,6 +1323,14 @@ bool pdo_sqlsrv_dbh_set_attr(_Inout_ pdo_dbh_t *dbh, _In_ zend_long attr, _Inout
13231323
break;
13241324
#endif
13251325

1326+
#if (PHP_VERSION_ID >= 80122 && PHP_VERSION_ID < 80200) || PHP_VERSION_ID >= 80209
1327+
case PDO_ATTR_STRINGIFY_FETCHES:
1328+
{
1329+
// do nothing
1330+
}
1331+
break;
1332+
#endif
1333+
13261334
// Not supported
13271335
case PDO_ATTR_FETCH_TABLE_NAMES:
13281336
case PDO_ATTR_FETCH_CATALOG_NAMES:

0 commit comments

Comments
 (0)