schema-related information (like schema version, DB syntax, etc.) moved from "config...
[public/netxms.git] / src / server / core / dcitem.cpp
index 8b863ae..0cef3ae 100644 (file)
@@ -1180,7 +1180,7 @@ void DCItem::UpdateCacheSize(DWORD dwCondId)
          char szBuffer[MAX_DB_STRING];
          BOOL bHasData;
 
-         switch(g_dwDBSyntax)
+         switch(g_nDBSyntax)
          {
             case DB_SYNTAX_MSSQL:
                sprintf(szBuffer, "SELECT TOP %d idata_value,idata_timestamp FROM idata_%d "