//ConnectionInfo m_Connection = null;
        //public ConnectionInfo Connection
        //{
        //    get
        //    {
        //        if (m_Connection == null)
        //            m_Connection = new ConnectionInfo();
        //        return m_Connection;
        //    }
        //}

        public PivotQueryManager(String query, String updateScript)
        {
            //m_Connection = connection;
            Query = query;
            UpdateScript = updateScript;
            m_History = new HistoryManager();
            m_History.AddHistoryItem(new HistoryItem());
        }
        //protected virtual IQueryExecuter CreateQueryExecutor(ConnectionInfo connection)
        //{
        //    return null;
        //}

        //private IQueryExecuter m_QueryExecutor;
        //protected IQueryExecuter Executor
        //{
        //    get
        //    {
        //        if (m_QueryExecutor == null)
        //        {
        //            m_QueryExecutor = this.CreateQueryExecutor(this.Connection);
        //            //if (m_QueryExecutor == null)
        //            //{
        //            //    throw new Exception("Unable to create query executor.");
        //            //}
        //        }

        //        return m_QueryExecutor;
        //    }
        //}

        public void ChangeQuery(String query)
        {
            Query = query;
            m_History = new HistoryManager();
            m_History.AddHistoryItem(new HistoryItem());

            m_OriginalStatement = null;
        }