File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -322,7 +322,8 @@ ap_dbd_t* ap_dbd_open(apr_pool_t *pool, server_rec *s)
322322 "Failed to acquire DBD connection from pool!" );
323323 return NULL ;
324324 }
325- if (apr_dbd_check_conn (arec -> driver , pool , arec -> handle ) != APR_SUCCESS ) {
325+ rv = apr_dbd_check_conn (arec -> driver , pool , arec -> handle );
326+ if ((rv != APR_SUCCESS ) && (rv != APR_ENOTIMPL )) {
326327 errmsg = apr_dbd_error (arec -> driver , arec -> handle , rv );
327328 if (!errmsg ) {
328329 errmsg = "(unknown)" ;
@@ -351,7 +352,8 @@ ap_dbd_t* ap_dbd_open(apr_pool_t *pool, server_rec *s)
351352/* since we're in nothread-land, we can mess with svr->conn with impunity */
352353/* If we have a persistent connection and it's good, we'll use it */
353354 if (svr -> conn ) {
354- if (apr_dbd_check_conn (svr -> conn -> driver , pool , svr -> conn -> handle ) != 0 ){
355+ rv = apr_dbd_check_conn (svr -> conn -> driver , pool , svr -> conn -> handle );
356+ if ((rv != APR_SUCCESS ) && (rv != APR_ENOTIMPL )) {
355357 errmsg = apr_dbd_error (arec -> driver , arec -> handle , rv );
356358 if (!errmsg ) {
357359 errmsg = "(unknown)" ;
You can’t perform that action at this time.
0 commit comments