|
|
| Participants: |
Eloy Lafuente (stronk7) and Petr Skoda
|
| Security Level: |
None
|
| Resolved date: |
26/May/08
|
| Affected Branches: |
MOODLE_20_STABLE
|
| Fixed Branches: |
MOODLE_20_STABLE
|
|
some times it could be desirable to close DB connections and reopen them again. In order to achieve this moodle_database objects should implement one disconnect() method, simply closing the connection (but leaving the moodle_database object created).
Also, perhaps some is_connected() or so should be able to return true/false and all moodle_database functions handling DB info should start with one:
if (!is_connected) {
return false;
}
Ciao :-)
|
|
Description
|
some times it could be desirable to close DB connections and reopen them again. In order to achieve this moodle_database objects should implement one disconnect() method, simply closing the connection (but leaving the moodle_database object created).
Also, perhaps some is_connected() or so should be able to return true/false and all moodle_database functions handling DB info should start with one:
if (!is_connected) {
return false;
}
Ciao :-) |
Show » |
committed 4 files to 'Moodle CVS' - 26/May/08 03:56 AM
MDL-14910 added option to dispose existing database instance (closes connection and releases all resources)
|
|
|
made changes - 26/May/08 03:57 AM
| Field |
Original Value |
New Value |
|
Status
|
Open
[ 1
]
|
Resolved
[ 5
]
|
|
Resolution
|
|
Fixed
[ 1
]
|
|
it is not possible to reconnect, it is documented in the inline docs of dispose() method
please reopen if needed