Fixed bug in upgrade procedure
authorVictor Kirhenshtein <victor@netxms.org>
Thu, 17 Feb 2005 22:23:14 +0000 (22:23 +0000)
committerVictor Kirhenshtein <victor@netxms.org>
Thu, 17 Feb 2005 22:23:14 +0000 (22:23 +0000)
src/server/tools/nxdbmgr/upgrade.cpp

index e836a9b..01dda0f 100644 (file)
@@ -120,7 +120,7 @@ static BOOL H_UpgradeFromV20(void)
                dwFlags |= m_dwFlag[j];
          _sntprintf(szQuery, 256, _T("UPDATE nodes SET node_flags=%ld WHERE id=%ld"),
                     dwFlags, DBGetFieldULong(hResult, i, 0));
-         if (!SQLQuery(m_szBatch))
+         if (!SQLQuery(szQuery))
             if (!g_bIgnoreErrors)
             {
                DBFreeResult(hResult);