2012-03-24 Junichi Satoh <junichi@rworks.jp>
* operation/agentes/status_monitor.php: Fixed SQL error with PostgreSQL. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5827 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
d90e3f671a
commit
205bcf8e0a
|
@ -1,3 +1,7 @@
|
||||||
|
2012-03-24 Junichi Satoh <junichi@rworks.jp>
|
||||||
|
|
||||||
|
* operation/agentes/status_monitor.php: Fixed SQL error with PostgreSQL.
|
||||||
|
|
||||||
2012-03-24 Junichi Satoh <junichi@rworks.jp>
|
2012-03-24 Junichi Satoh <junichi@rworks.jp>
|
||||||
|
|
||||||
* include/functions_agents.php, include/functions_config.php,
|
* include/functions_agents.php, include/functions_config.php,
|
||||||
|
|
|
@ -375,7 +375,7 @@ elseif ($status == 5) { //Not init
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build final SQL sentences
|
// Build final SQL sentences
|
||||||
$count = db_get_sql ("SELECT COUNT(tagente_modulo.id_agente_modulo)". $sql . ") ORDER BY tagente.id_grupo, tagente.nombre");
|
$count = db_get_sql ("SELECT COUNT(tagente_modulo.id_agente_modulo)". $sql . ")");
|
||||||
switch ($config["dbtype"]) {
|
switch ($config["dbtype"]) {
|
||||||
case "mysql":
|
case "mysql":
|
||||||
$sql = "SELECT tagente_modulo.id_agente_modulo,
|
$sql = "SELECT tagente_modulo.id_agente_modulo,
|
||||||
|
@ -422,7 +422,7 @@ switch ($config["dbtype"]) {
|
||||||
tagente_modulo.max_critical,
|
tagente_modulo.max_critical,
|
||||||
tagente_modulo.str_critical,
|
tagente_modulo.str_critical,
|
||||||
tagente_modulo.extended_info,
|
tagente_modulo.extended_info,
|
||||||
tagente_estado.utimestamp AS utimestamp".$sql." LIMIT " . $config["block_size"] . " OFFSET " . $offset;
|
tagente_estado.utimestamp AS utimestamp".$sql.") LIMIT " . $config["block_size"] . " OFFSET " . $offset;
|
||||||
break;
|
break;
|
||||||
case "oracle":
|
case "oracle":
|
||||||
$set = array();
|
$set = array();
|
||||||
|
|
Loading…
Reference in New Issue