Skip to content

Commit f89f600

Browse files
committed
Add comment explaining empty default case
1 parent 6cc0d7c commit f89f600

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
@@ -801,9 +801,8 @@ static bool pdo_dbh_attribute_set(pdo_dbh_t *dbh, zend_long attr, zval *value) /
801801
}
802802
return true;
803803
}
804-
805-
default:
806-
;
804+
/* Don't throw a ValueError as the attribute might be a driver specific one */
805+
default:;
807806
}
808807

809808
if (!dbh->methods->set_attribute) {

0 commit comments

Comments
 (0)