|
|
@ -190,7 +190,9 @@ if ($db_working) {
|
|
|
|
// more database tests
|
|
|
|
// more database tests
|
|
|
|
if ($db_working) {
|
|
|
|
if ($db_working) {
|
|
|
|
// Using transactions to workaround SQLite bug (#7064)
|
|
|
|
// Using transactions to workaround SQLite bug (#7064)
|
|
|
|
$DB->startTransaction();
|
|
|
|
if ($DB->db_provider == 'sqlite') {
|
|
|
|
|
|
|
|
$DB->startTransaction();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// write test
|
|
|
|
// write test
|
|
|
|
$insert_id = md5(uniqid());
|
|
|
|
$insert_id = md5(uniqid());
|
|
|
@ -208,7 +210,9 @@ if ($db_working) {
|
|
|
|
echo '<br />';
|
|
|
|
echo '<br />';
|
|
|
|
|
|
|
|
|
|
|
|
// Transaction end
|
|
|
|
// Transaction end
|
|
|
|
$DB->rollbackTransaction();
|
|
|
|
if ($DB->db_provider == 'sqlite') {
|
|
|
|
|
|
|
|
$DB->rollbackTransaction();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// check timezone settings
|
|
|
|
// check timezone settings
|
|
|
|
$tz_db = 'SELECT ' . $DB->unixtimestamp($DB->now()) . ' AS tz_db';
|
|
|
|
$tz_db = 'SELECT ' . $DB->unixtimestamp($DB->now()) . ' AS tz_db';
|
|
|
|