Little fix related with the oracle support

This commit is contained in:
Alejandro Gallardo Escobar 2015-05-11 21:22:27 +02:00
parent a106111186
commit b853d29c33
1 changed files with 6 additions and 0 deletions

View File

@ -4317,6 +4317,12 @@ sub pandora_self_monitoring ($$) {
WHERE token = 'db_maintance'
AND NULLIF(value, '')::int > UNIX_TIMESTAMP() - 86400");
}
else if ($RDBMS eq 'oracle') {
$dbmaintance = get_db_value ($dbh,
"SELECT COUNT(*)
FROM tconfig
WHERE token = 'db_maintance' AND DBMS_LOB.substr(value, 100, 1) > UNIX_TIMESTAMP() - 86400");
}
else {
$dbmaintance = get_db_value ($dbh,
"SELECT COUNT(*)