count = results.getLongColumn("count");
if ("oracle".equals(ConfigurationManager.getProperty("db.name"))) { count = results.getIntColumn("count"); } else { count = results.getLongColumn("count"); }
    public static boolean indexHasChanged(BrowseScope key) throws SQLException    {        Context context = null;        try        {            context = new Context();            TableRow results = countAndMax(context, key);            long count = -1;            int max = -1;            if (results != null)            {                count = results.getLongColumn("count");                max = results.getIntColumn("max");            }            context.complete();            // Same?            if ((count == getCount(key)) && (max == getMaximum(key)))            {                return false;            }            // Update 'em            setMaximum(key, max);            setCount(key, count);            // The index has in fact changed            return true;        }        catch (SQLException sqle)        {            if (context != null)            {                context.abort();            }            throw sqle;        }    }