mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
Little fix related with the oracle support
This commit is contained in:
parent
a106111186
commit
b853d29c33
@ -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(*)
|
||||
|
Loading…
x
Reference in New Issue
Block a user