Skip to content

Commit 8fbe4be

Browse files
Fix SQL loading groups
1 parent e663605 commit 8fbe4be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zm_monitor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3626,7 +3626,7 @@ std::vector<Group *> Monitor::Groups() {
36263626
// At the moment, only load groups once.
36273627
if (!groups.size()) {
36283628
std::string sql = stringtf(
3629-
"SELECT `Id`, `ParentId`, `Name` FROM `Groups` WHERE `Groups.Id` IN "
3629+
"SELECT `Id`, `ParentId`, `Name` FROM `Groups` WHERE `Groups`.`Id` IN "
36303630
"(SELECT `GroupId` FROM `Groups_Monitors` WHERE `MonitorId`=%d)", id);
36313631
MYSQL_RES *result = zmDbFetch(sql);
36323632
if (!result) {

0 commit comments

Comments
 (0)