Skip to content

Commit c5ae37d

Browse files
committed
Add comment explaining empty default case
1 parent 51a4d58 commit c5ae37d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ext/pdo/pdo_dbh.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -813,9 +813,8 @@ static bool pdo_dbh_attribute_set(pdo_dbh_t *dbh, zend_long attr, zval *value) /
813813
}
814814
return true;
815815
}
816-
817-
default:
818-
;
816+
/* Don't throw a ValueError as the attribute might be a driver specific one */
817+
default:;
819818
}
820819

821820
PDO_DBH_CLEAR_ERR();

0 commit comments

Comments
 (0)