fixed bug in event import
authorVictor Kirhenshtein <victor@netxms.org>
Wed, 8 Jun 2016 11:07:00 +0000 (14:07 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Wed, 8 Jun 2016 11:07:00 +0000 (14:07 +0300)
src/server/core/import.cpp

index 8091c77..587e5c0 100644 (file)
@@ -246,7 +246,7 @@ static UINT32 ImportEvent(ConfigEntry *event)
        uuid guid = event->getSubEntryValueAsUUID(_T("guid"));
        if (!guid.isNull())
        {
-          DB_STATEMENT hStmt = DBPrepare(hdb, _T("SELECT id FROM event_cfg WHERE guid=?"));
+          DB_STATEMENT hStmt = DBPrepare(hdb, _T("SELECT event_code FROM event_cfg WHERE guid=?"));
           if (hStmt == NULL)
           {
              DBConnectionPoolReleaseConnection(hdb);