Project

General

Profile

Actions

Feature #22463

closed

Add a method to check if database is connected

Added by Dmitry Dulepov over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2010-04-15
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.3
Tags:
Complexity:
Sprint Focus:

Description

There is no reliable method to check if database is connected in TYPO3. In case if native implementation is used, $TYPO3_DB->link can be checked. In case of DBAL there is no solution without knowing DBAL internals.

The patch adds a new generic function named "isConnected" to t3lib_db and DBAL.

(issue imported from #M14120)


Files

14120.diff (1.27 KB) 14120.diff Administrator Admin, 2010-04-15 10:54

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #16619: Fail-safe mechanism for database connectivity problemClosedMichael Stucki2006-10-04

Actions
Related to TYPO3 Core - Bug #16219: Creating Admin user doesn't check for correct DB-ConnectionClosed2006-06-07

Actions
Actions #1

Updated by Dmitry Dulepov over 14 years ago

4.4, rev 7371

Actions

Also available in: Atom PDF