Zend_Db_Statement_Exception Object
(
    [_previous:Zend_Exception:private] => 
    [message:protected] => SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'enterprise_mview_metadata' already exists, query was: CREATE TABLE `enterprise_mview_metadata` (
  `metadata_id` int UNSIGNED NOT NULL auto_increment COMMENT 'Metadata Id' ,
  `view_name` varchar(64) NOT NULL COMMENT 'View name' ,
  `table_name` varchar(64) NOT NULL COMMENT 'Table name' ,
  `key_column` varchar(64) NULL COMMENT 'Key column name' ,
  `changelog_name` varchar(64) NULL COMMENT 'Changelog table name' ,
  `status` smallint NOT NULL COMMENT 'Materialized view status' ,
  `refreshed_at` timestamp NULL default NULL COMMENT 'Date of last view table refresh' ,
  PRIMARY KEY (`metadata_id`),
  UNIQUE `UNQ_ENTERPRISE_MVIEW_METADATA_VIEW_NAME` (`view_name`),
  UNIQUE `UNQ_ENTERPRISE_MVIEW_METADATA_TABLE_NAME` (`table_name`)
) COMMENT='Materialized view metadata' ENGINE=INNODB charset=utf8 COLLATE=utf8_general_ci
    [string:Exception:private] => 
    [code:protected] => 42
    [file:protected] => /www/sites/www.omcgear.com/files/html/lib/Zend/Db/Statement/Pdo.php
    [line:protected] => 235
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /www/sites/www.omcgear.com/files/html/lib/Varien/Db/Statement/Pdo/Mysql.php
                    [line] => 110
                    [function] => _execute
                    [class] => Zend_Db_Statement_Pdo
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

            [1] => Array
                (
                    [file] => /www/sites/www.omcgear.com/files/html/app/code/core/Zend/Db/Statement.php
                    [line] => 291
                    [function] => _execute
                    [class] => Varien_Db_Statement_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

            [2] => Array
                (
                    [file] => /www/sites/www.omcgear.com/files/html/lib/Zend/Db/Adapter/Abstract.php
                    [line] => 480
                    [function] => execute
                    [class] => Zend_Db_Statement
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

            [3] => Array
                (
                    [file] => /www/sites/www.omcgear.com/files/html/lib/Zend/Db/Adapter/Pdo/Abstract.php
                    [line] => 238
                    [function] => query
                    [class] => Zend_Db_Adapter_Abstract
                    [type] => ->
                    [args] => Array
                        (
                            [0] => CREATE TABLE `enterprise_mview_metadata` (
  `metadata_id` int UNSIGNED NOT NULL auto_increment COMMENT 'Metadata Id' ,
  `view_name` varchar(64) NOT NULL COMMENT 'View name' ,
  `table_name` varchar(64) NOT NULL COMMENT 'Table name' ,
  `key_column` varchar(64) NULL COMMENT 'Key column name' ,
  `changelog_name` varchar(64) NULL COMMENT 'Changelog table name' ,
  `status` smallint NOT NULL COMMENT 'Materialized view status' ,
  `refreshed_at` timestamp NULL default NULL COMMENT 'Date of last view table refresh' ,
  PRIMARY KEY (`metadata_id`),
  UNIQUE `UNQ_ENTERPRISE_MVIEW_METADATA_VIEW_NAME` (`view_name`),
  UNIQUE `UNQ_ENTERPRISE_MVIEW_METADATA_TABLE_NAME` (`table_name`)
) COMMENT='Materialized view metadata' ENGINE=INNODB charset=utf8 COLLATE=utf8_general_ci
                            [1] => Array
                                (
                                )

                        )

                )

            [4] => Array
                (
                    [file] => /www/sites/www.omcgear.com/files/html/lib/Varien/Db/Adapter/Pdo/Mysql.php
                    [line] => 428
                    [function] => query
                    [class] => Zend_Db_Adapter_Pdo_Abstract
                    [type] => ->
                    [args] => Array
                        (
                            [0] => CREATE TABLE `enterprise_mview_metadata` (
  `metadata_id` int UNSIGNED NOT NULL auto_increment COMMENT 'Metadata Id' ,
  `view_name` varchar(64) NOT NULL COMMENT 'View name' ,
  `table_name` varchar(64) NOT NULL COMMENT 'Table name' ,
  `key_column` varchar(64) NULL COMMENT 'Key column name' ,
  `changelog_name` varchar(64) NULL COMMENT 'Changelog table name' ,
  `status` smallint NOT NULL COMMENT 'Materialized view status' ,
  `refreshed_at` timestamp NULL default NULL COMMENT 'Date of last view table refresh' ,
  PRIMARY KEY (`metadata_id`),
  UNIQUE `UNQ_ENTERPRISE_MVIEW_METADATA_VIEW_NAME` (`view_name`),
  UNIQUE `UNQ_ENTERPRISE_MVIEW_METADATA_TABLE_NAME` (`table_name`)
) COMMENT='Materialized view metadata' ENGINE=INNODB charset=utf8 COLLATE=utf8_general_ci
                            [1] => Array
                                (
                                )

                        )

                )

            [5] => Array
                (
                    [file] => /www/sites/www.omcgear.com/files/html/lib/Varien/Db/Adapter/Pdo/Mysql.php
                    [line] => 2117
                    [function] => query
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => CREATE TABLE `enterprise_mview_metadata` (
  `metadata_id` int UNSIGNED NOT NULL auto_increment COMMENT 'Metadata Id' ,
  `view_name` varchar(64) NOT NULL COMMENT 'View name' ,
  `table_name` varchar(64) NOT NULL COMMENT 'Table name' ,
  `key_column` varchar(64) NULL COMMENT 'Key column name' ,
  `changelog_name` varchar(64) NULL COMMENT 'Changelog table name' ,
  `status` smallint NOT NULL COMMENT 'Materialized view status' ,
  `refreshed_at` timestamp NULL default NULL COMMENT 'Date of last view table refresh' ,
  PRIMARY KEY (`metadata_id`),
  UNIQUE `UNQ_ENTERPRISE_MVIEW_METADATA_VIEW_NAME` (`view_name`),
  UNIQUE `UNQ_ENTERPRISE_MVIEW_METADATA_TABLE_NAME` (`table_name`)
) COMMENT='Materialized view metadata' ENGINE=INNODB charset=utf8 COLLATE=utf8_general_ci
                        )

                )

            [6] => Array
                (
                    [file] => /www/sites/www.omcgear.com/files/html/app/code/core/Enterprise/Mview/sql/enterprise_mview_setup/install-1.12.0.0.php
                    [line] => 65
                    [function] => createTable
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Varien_Db_Ddl_Table Object
                                (
                                    [_tableName:protected] => enterprise_mview_metadata
                                    [_schemaName:protected] => 
                                    [_tableComment:protected] => Materialized view metadata
                                    [_columns:protected] => Array
                                        (
                                            [METADATA_ID] => Array
                                                (
                                                    [COLUMN_NAME] => metadata_id
                                                    [COLUMN_TYPE] => integer
                                                    [COLUMN_POSITION] => 0
                                                    [DATA_TYPE] => integer
                                                    [DEFAULT] => 
                                                    [NULLABLE] => 
                                                    [LENGTH] => 
                                                    [SCALE] => 
                                                    [PRECISION] => 
                                                    [UNSIGNED] => 1
                                                    [PRIMARY] => 1
                                                    [PRIMARY_POSITION] => 0
                                                    [IDENTITY] => 1
                                                    [COMMENT] => Metadata Id
                                                )

                                            [VIEW_NAME] => Array
                                                (
                                                    [COLUMN_NAME] => view_name
                                                    [COLUMN_TYPE] => text
                                                    [COLUMN_POSITION] => 1
                                                    [DATA_TYPE] => text
                                                    [DEFAULT] => 
                                                    [NULLABLE] => 
                                                    [LENGTH] => 64
                                                    [SCALE] => 
                                                    [PRECISION] => 
                                                    [UNSIGNED] => 
                                                    [PRIMARY] => 
                                                    [PRIMARY_POSITION] => 0
                                                    [IDENTITY] => 
                                                    [COMMENT] => View name
                                                )

                                            [TABLE_NAME] => Array
                                                (
                                                    [COLUMN_NAME] => table_name
                                                    [COLUMN_TYPE] => text
                                                    [COLUMN_POSITION] => 2
                                                    [DATA_TYPE] => text
                                                    [DEFAULT] => 
                                                    [NULLABLE] => 
                                                    [LENGTH] => 64
                                                    [SCALE] => 
                                                    [PRECISION] => 
                                                    [UNSIGNED] => 
                                                    [PRIMARY] => 
                                                    [PRIMARY_POSITION] => 0
                                                    [IDENTITY] => 
                                                    [COMMENT] => Table name
                                                )

                                            [KEY_COLUMN] => Array
                                                (
                                                    [COLUMN_NAME] => key_column
                                                    [COLUMN_TYPE] => text
                                                    [COLUMN_POSITION] => 3
                                                    [DATA_TYPE] => text
                                                    [DEFAULT] => 
                                                    [NULLABLE] => 1
                                                    [LENGTH] => 64
                                                    [SCALE] => 
                                                    [PRECISION] => 
                                                    [UNSIGNED] => 
                                                    [PRIMARY] => 
                                                    [PRIMARY_POSITION] => 0
                                                    [IDENTITY] => 
                                                    [COMMENT] => Key column name
                                                )

                                            [CHANGELOG_NAME] => Array
                                                (
                                                    [COLUMN_NAME] => changelog_name
                                                    [COLUMN_TYPE] => text
                                                    [COLUMN_POSITION] => 4
                                                    [DATA_TYPE] => text
                                                    [DEFAULT] => 
                                                    [NULLABLE] => 1
                                                    [LENGTH] => 64
                                                    [SCALE] => 
                                                    [PRECISION] => 
                                                    [UNSIGNED] => 
                                                    [PRIMARY] => 
                                                    [PRIMARY_POSITION] => 0
                                                    [IDENTITY] => 
                                                    [COMMENT] => Changelog table name
                                                )

                                            [STATUS] => Array
                                                (
                                                    [COLUMN_NAME] => status
                                                    [COLUMN_TYPE] => smallint
                                                    [COLUMN_POSITION] => 5
                                                    [DATA_TYPE] => smallint
                                                    [DEFAULT] => 
                                                    [NULLABLE] => 
                                                    [LENGTH] => 
                                                    [SCALE] => 
                                                    [PRECISION] => 
                                                    [UNSIGNED] => 
                                                    [PRIMARY] => 
                                                    [PRIMARY_POSITION] => 0
                                                    [IDENTITY] => 
                                                    [COMMENT] => Materialized view status
                                                )

                                            [REFRESHED_AT] => Array
                                                (
                                                    [COLUMN_NAME] => refreshed_at
                                                    [COLUMN_TYPE] => timestamp
                                                    [COLUMN_POSITION] => 6
                                                    [DATA_TYPE] => timestamp
                                                    [DEFAULT] => 
                                                    [NULLABLE] => 1
                                                    [LENGTH] => 
                                                    [SCALE] => 
                                                    [PRECISION] => 
                                                    [UNSIGNED] => 
                                                    [PRIMARY] => 
                                                    [PRIMARY_POSITION] => 0
                                                    [IDENTITY] => 
                                                    [COMMENT] => Date of last view table refresh
                                                )

                                        )

                                    [_indexes:protected] => Array
                                        (
                                            [UNQ_ENTERPRISE_MVIEW_METADATA_VIEW_NAME] => Array
                                                (
                                                    [INDEX_NAME] => UNQ_ENTERPRISE_MVIEW_METADATA_VIEW_NAME
                                                    [COLUMNS] => Array
                                                        (
                                                            [VIEW_NAME] => Array
                                                                (
                                                                    [NAME] => view_name
                                                                    [SIZE] => 
                                                                    [POSITION] => 0
                                                                )

                                                        )

                                                    [TYPE] => unique
                                                )

                                            [UNQ_ENTERPRISE_MVIEW_METADATA_TABLE_NAME] => Array
                                                (
                                                    [INDEX_NAME] => UNQ_ENTERPRISE_MVIEW_METADATA_TABLE_NAME
                                                    [COLUMNS] => Array
                                                        (
                                                            [TABLE_NAME] => Array
                                                                (
                                                                    [NAME] => table_name
                                                                    [SIZE] => 
                                                                    [POSITION] => 0
                                                                )

                                                        )

                                                    [TYPE] => unique
                                                )

                                        )

                                    [_foreignKeys:protected] => Array
                                        (
                                        )

                                    [_options:protected] => Array
                                        (
                                            [type] => INNODB
                                            [charset] => utf8
                                            [collate] => utf8_general_ci
                                        )

                                )

                        )

                )

            [7] => Array
                (
                    [file] => /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 624
                    [args] => Array
                        (
                            [0] => /www/sites/www.omcgear.com/files/html/app/code/core/Enterprise/Mview/sql/enterprise_mview_setup/install-1.12.0.0.php
                        )

                    [function] => include
                )

            [8] => Array
                (
                    [file] => /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 421
                    [function] => _modifyResourceDb
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => install
                            [1] => 
                            [2] => 1.12.0.2
                        )

                )

            [9] => Array
                (
                    [file] => /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 327
                    [function] => _installResourceDb
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 1.12.0.2
                        )

                )

            [10] => Array
                (
                    [file] => /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 235
                    [function] => applyUpdates
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [11] => Array
                (
                    [file] => /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/App.php
                    [line] => 417
                    [function] => applyAllUpdates
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ::
                    [args] => Array
                        (
                        )

                )

            [12] => Array
                (
                    [file] => /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/App.php
                    [line] => 343
                    [function] => _initModules
                    [class] => Mage_Core_Model_App
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [13] => Array
                (
                    [file] => /www/sites/www.omcgear.com/files/html/app/Mage.php
                    [line] => 685
                    [function] => run
                    [class] => Mage_Core_Model_App
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [scope_code] => 
                                    [scope_type] => store
                                    [options] => Array
                                        (
                                        )

                                )

                        )

                )

            [14] => Array
                (
                    [file] => /www/sites/www.omcgear.com/files/html/index.php
                    [line] => 87
                    [function] => run
                    [class] => Mage
                    [type] => ::
                    [args] => Array
                        (
                            [0] => 
                            [1] => store
                        )

                )

        )

    [previous:Exception:private] => PDOException Object
        (
            [message:protected] => SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'enterprise_mview_metadata' already exists
            [string:Exception:private] => 
            [code:protected] => 42S01
            [file:protected] => /www/sites/www.omcgear.com/files/html/lib/Zend/Db/Statement/Pdo.php
            [line:protected] => 228
            [trace:Exception:private] => Array
                (
                    [0] => Array
                        (
                            [file] => /www/sites/www.omcgear.com/files/html/lib/Zend/Db/Statement/Pdo.php
                            [line] => 228
                            [function] => execute
                            [class] => PDOStatement
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => Array
                                        (
                                        )

                                )

                        )

                    [1] => Array
                        (
                            [file] => /www/sites/www.omcgear.com/files/html/lib/Varien/Db/Statement/Pdo/Mysql.php
                            [line] => 110
                            [function] => _execute
                            [class] => Zend_Db_Statement_Pdo
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => Array
                                        (
                                        )

                                )

                        )

                    [2] => Array
                        (
                            [file] => /www/sites/www.omcgear.com/files/html/app/code/core/Zend/Db/Statement.php
                            [line] => 291
                            [function] => _execute
                            [class] => Varien_Db_Statement_Pdo_Mysql
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => Array
                                        (
                                        )

                                )

                        )

                    [3] => Array
                        (
                            [file] => /www/sites/www.omcgear.com/files/html/lib/Zend/Db/Adapter/Abstract.php
                            [line] => 480
                            [function] => execute
                            [class] => Zend_Db_Statement
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => Array
                                        (
                                        )

                                )

                        )

                    [4] => Array
                        (
                            [file] => /www/sites/www.omcgear.com/files/html/lib/Zend/Db/Adapter/Pdo/Abstract.php
                            [line] => 238
                            [function] => query
                            [class] => Zend_Db_Adapter_Abstract
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => CREATE TABLE `enterprise_mview_metadata` (
  `metadata_id` int UNSIGNED NOT NULL auto_increment COMMENT 'Metadata Id' ,
  `view_name` varchar(64) NOT NULL COMMENT 'View name' ,
  `table_name` varchar(64) NOT NULL COMMENT 'Table name' ,
  `key_column` varchar(64) NULL COMMENT 'Key column name' ,
  `changelog_name` varchar(64) NULL COMMENT 'Changelog table name' ,
  `status` smallint NOT NULL COMMENT 'Materialized view status' ,
  `refreshed_at` timestamp NULL default NULL COMMENT 'Date of last view table refresh' ,
  PRIMARY KEY (`metadata_id`),
  UNIQUE `UNQ_ENTERPRISE_MVIEW_METADATA_VIEW_NAME` (`view_name`),
  UNIQUE `UNQ_ENTERPRISE_MVIEW_METADATA_TABLE_NAME` (`table_name`)
) COMMENT='Materialized view metadata' ENGINE=INNODB charset=utf8 COLLATE=utf8_general_ci
                                    [1] => Array
                                        (
                                        )

                                )

                        )

                    [5] => Array
                        (
                            [file] => /www/sites/www.omcgear.com/files/html/lib/Varien/Db/Adapter/Pdo/Mysql.php
                            [line] => 428
                            [function] => query
                            [class] => Zend_Db_Adapter_Pdo_Abstract
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => CREATE TABLE `enterprise_mview_metadata` (
  `metadata_id` int UNSIGNED NOT NULL auto_increment COMMENT 'Metadata Id' ,
  `view_name` varchar(64) NOT NULL COMMENT 'View name' ,
  `table_name` varchar(64) NOT NULL COMMENT 'Table name' ,
  `key_column` varchar(64) NULL COMMENT 'Key column name' ,
  `changelog_name` varchar(64) NULL COMMENT 'Changelog table name' ,
  `status` smallint NOT NULL COMMENT 'Materialized view status' ,
  `refreshed_at` timestamp NULL default NULL COMMENT 'Date of last view table refresh' ,
  PRIMARY KEY (`metadata_id`),
  UNIQUE `UNQ_ENTERPRISE_MVIEW_METADATA_VIEW_NAME` (`view_name`),
  UNIQUE `UNQ_ENTERPRISE_MVIEW_METADATA_TABLE_NAME` (`table_name`)
) COMMENT='Materialized view metadata' ENGINE=INNODB charset=utf8 COLLATE=utf8_general_ci
                                    [1] => Array
                                        (
                                        )

                                )

                        )

                    [6] => Array
                        (
                            [file] => /www/sites/www.omcgear.com/files/html/lib/Varien/Db/Adapter/Pdo/Mysql.php
                            [line] => 2117
                            [function] => query
                            [class] => Varien_Db_Adapter_Pdo_Mysql
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => CREATE TABLE `enterprise_mview_metadata` (
  `metadata_id` int UNSIGNED NOT NULL auto_increment COMMENT 'Metadata Id' ,
  `view_name` varchar(64) NOT NULL COMMENT 'View name' ,
  `table_name` varchar(64) NOT NULL COMMENT 'Table name' ,
  `key_column` varchar(64) NULL COMMENT 'Key column name' ,
  `changelog_name` varchar(64) NULL COMMENT 'Changelog table name' ,
  `status` smallint NOT NULL COMMENT 'Materialized view status' ,
  `refreshed_at` timestamp NULL default NULL COMMENT 'Date of last view table refresh' ,
  PRIMARY KEY (`metadata_id`),
  UNIQUE `UNQ_ENTERPRISE_MVIEW_METADATA_VIEW_NAME` (`view_name`),
  UNIQUE `UNQ_ENTERPRISE_MVIEW_METADATA_TABLE_NAME` (`table_name`)
) COMMENT='Materialized view metadata' ENGINE=INNODB charset=utf8 COLLATE=utf8_general_ci
                                )

                        )

                    [7] => Array
                        (
                            [file] => /www/sites/www.omcgear.com/files/html/app/code/core/Enterprise/Mview/sql/enterprise_mview_setup/install-1.12.0.0.php
                            [line] => 65
                            [function] => createTable
                            [class] => Varien_Db_Adapter_Pdo_Mysql
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => Varien_Db_Ddl_Table Object
                                        (
                                            [_tableName:protected] => enterprise_mview_metadata
                                            [_schemaName:protected] => 
                                            [_tableComment:protected] => Materialized view metadata
                                            [_columns:protected] => Array
                                                (
                                                    [METADATA_ID] => Array
                                                        (
                                                            [COLUMN_NAME] => metadata_id
                                                            [COLUMN_TYPE] => integer
                                                            [COLUMN_POSITION] => 0
                                                            [DATA_TYPE] => integer
                                                            [DEFAULT] => 
                                                            [NULLABLE] => 
                                                            [LENGTH] => 
                                                            [SCALE] => 
                                                            [PRECISION] => 
                                                            [UNSIGNED] => 1
                                                            [PRIMARY] => 1
                                                            [PRIMARY_POSITION] => 0
                                                            [IDENTITY] => 1
                                                            [COMMENT] => Metadata Id
                                                        )

                                                    [VIEW_NAME] => Array
                                                        (
                                                            [COLUMN_NAME] => view_name
                                                            [COLUMN_TYPE] => text
                                                            [COLUMN_POSITION] => 1
                                                            [DATA_TYPE] => text
                                                            [DEFAULT] => 
                                                            [NULLABLE] => 
                                                            [LENGTH] => 64
                                                            [SCALE] => 
                                                            [PRECISION] => 
                                                            [UNSIGNED] => 
                                                            [PRIMARY] => 
                                                            [PRIMARY_POSITION] => 0
                                                            [IDENTITY] => 
                                                            [COMMENT] => View name
                                                        )

                                                    [TABLE_NAME] => Array
                                                        (
                                                            [COLUMN_NAME] => table_name
                                                            [COLUMN_TYPE] => text
                                                            [COLUMN_POSITION] => 2
                                                            [DATA_TYPE] => text
                                                            [DEFAULT] => 
                                                            [NULLABLE] => 
                                                            [LENGTH] => 64
                                                            [SCALE] => 
                                                            [PRECISION] => 
                                                            [UNSIGNED] => 
                                                            [PRIMARY] => 
                                                            [PRIMARY_POSITION] => 0
                                                            [IDENTITY] => 
                                                            [COMMENT] => Table name
                                                        )

                                                    [KEY_COLUMN] => Array
                                                        (
                                                            [COLUMN_NAME] => key_column
                                                            [COLUMN_TYPE] => text
                                                            [COLUMN_POSITION] => 3
                                                            [DATA_TYPE] => text
                                                            [DEFAULT] => 
                                                            [NULLABLE] => 1
                                                            [LENGTH] => 64
                                                            [SCALE] => 
                                                            [PRECISION] => 
                                                            [UNSIGNED] => 
                                                            [PRIMARY] => 
                                                            [PRIMARY_POSITION] => 0
                                                            [IDENTITY] => 
                                                            [COMMENT] => Key column name
                                                        )

                                                    [CHANGELOG_NAME] => Array
                                                        (
                                                            [COLUMN_NAME] => changelog_name
                                                            [COLUMN_TYPE] => text
                                                            [COLUMN_POSITION] => 4
                                                            [DATA_TYPE] => text
                                                            [DEFAULT] => 
                                                            [NULLABLE] => 1
                                                            [LENGTH] => 64
                                                            [SCALE] => 
                                                            [PRECISION] => 
                                                            [UNSIGNED] => 
                                                            [PRIMARY] => 
                                                            [PRIMARY_POSITION] => 0
                                                            [IDENTITY] => 
                                                            [COMMENT] => Changelog table name
                                                        )

                                                    [STATUS] => Array
                                                        (
                                                            [COLUMN_NAME] => status
                                                            [COLUMN_TYPE] => smallint
                                                            [COLUMN_POSITION] => 5
                                                            [DATA_TYPE] => smallint
                                                            [DEFAULT] => 
                                                            [NULLABLE] => 
                                                            [LENGTH] => 
                                                            [SCALE] => 
                                                            [PRECISION] => 
                                                            [UNSIGNED] => 
                                                            [PRIMARY] => 
                                                            [PRIMARY_POSITION] => 0
                                                            [IDENTITY] => 
                                                            [COMMENT] => Materialized view status
                                                        )

                                                    [REFRESHED_AT] => Array
                                                        (
                                                            [COLUMN_NAME] => refreshed_at
                                                            [COLUMN_TYPE] => timestamp
                                                            [COLUMN_POSITION] => 6
                                                            [DATA_TYPE] => timestamp
                                                            [DEFAULT] => 
                                                            [NULLABLE] => 1
                                                            [LENGTH] => 
                                                            [SCALE] => 
                                                            [PRECISION] => 
                                                            [UNSIGNED] => 
                                                            [PRIMARY] => 
                                                            [PRIMARY_POSITION] => 0
                                                            [IDENTITY] => 
                                                            [COMMENT] => Date of last view table refresh
                                                        )

                                                )

                                            [_indexes:protected] => Array
                                                (
                                                    [UNQ_ENTERPRISE_MVIEW_METADATA_VIEW_NAME] => Array
                                                        (
                                                            [INDEX_NAME] => UNQ_ENTERPRISE_MVIEW_METADATA_VIEW_NAME
                                                            [COLUMNS] => Array
                                                                (
                                                                    [VIEW_NAME] => Array
                                                                        (
                                                                            [NAME] => view_name
                                                                            [SIZE] => 
                                                                            [POSITION] => 0
                                                                        )

                                                                )

                                                            [TYPE] => unique
                                                        )

                                                    [UNQ_ENTERPRISE_MVIEW_METADATA_TABLE_NAME] => Array
                                                        (
                                                            [INDEX_NAME] => UNQ_ENTERPRISE_MVIEW_METADATA_TABLE_NAME
                                                            [COLUMNS] => Array
                                                                (
                                                                    [TABLE_NAME] => Array
                                                                        (
                                                                            [NAME] => table_name
                                                                            [SIZE] => 
                                                                            [POSITION] => 0
                                                                        )

                                                                )

                                                            [TYPE] => unique
                                                        )

                                                )

                                            [_foreignKeys:protected] => Array
                                                (
                                                )

                                            [_options:protected] => Array
                                                (
                                                    [type] => INNODB
                                                    [charset] => utf8
                                                    [collate] => utf8_general_ci
                                                )

                                        )

                                )

                        )

                    [8] => Array
                        (
                            [file] => /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/Resource/Setup.php
                            [line] => 624
                            [args] => Array
                                (
                                    [0] => /www/sites/www.omcgear.com/files/html/app/code/core/Enterprise/Mview/sql/enterprise_mview_setup/install-1.12.0.0.php
                                )

                            [function] => include
                        )

                    [9] => Array
                        (
                            [file] => /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/Resource/Setup.php
                            [line] => 421
                            [function] => _modifyResourceDb
                            [class] => Mage_Core_Model_Resource_Setup
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => install
                                    [1] => 
                                    [2] => 1.12.0.2
                                )

                        )

                    [10] => Array
                        (
                            [file] => /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/Resource/Setup.php
                            [line] => 327
                            [function] => _installResourceDb
                            [class] => Mage_Core_Model_Resource_Setup
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => 1.12.0.2
                                )

                        )

                    [11] => Array
                        (
                            [file] => /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/Resource/Setup.php
                            [line] => 235
                            [function] => applyUpdates
                            [class] => Mage_Core_Model_Resource_Setup
                            [type] => ->
                            [args] => Array
                                (
                                )

                        )

                    [12] => Array
                        (
                            [file] => /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/App.php
                            [line] => 417
                            [function] => applyAllUpdates
                            [class] => Mage_Core_Model_Resource_Setup
                            [type] => ::
                            [args] => Array
                                (
                                )

                        )

                    [13] => Array
                        (
                            [file] => /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/App.php
                            [line] => 343
                            [function] => _initModules
                            [class] => Mage_Core_Model_App
                            [type] => ->
                            [args] => Array
                                (
                                )

                        )

                    [14] => Array
                        (
                            [file] => /www/sites/www.omcgear.com/files/html/app/Mage.php
                            [line] => 685
                            [function] => run
                            [class] => Mage_Core_Model_App
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => Array
                                        (
                                            [scope_code] => 
                                            [scope_type] => store
                                            [options] => Array
                                                (
                                                )

                                        )

                                )

                        )

                    [15] => Array
                        (
                            [file] => /www/sites/www.omcgear.com/files/html/index.php
                            [line] => 87
                            [function] => run
                            [class] => Mage
                            [type] => ::
                            [args] => Array
                                (
                                    [0] => 
                                    [1] => store
                                )

                        )

                )

            [previous:Exception:private] => 
            [errorInfo] => Array
                (
                    [0] => 42S01
                    [1] => 1050
                    [2] => Table 'enterprise_mview_metadata' already exists
                )

            [xdebug_message] => 
PDOException: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'enterprise_mview_metadata' already exists in /www/sites/www.omcgear.com/files/html/lib/Zend/Db/Statement/Pdo.php on line 228

Call Stack:
    0.0001     239120   1. {main}() /www/sites/www.omcgear.com/files/html/index.php:0
    0.0004     328960   2. Mage::run() /www/sites/www.omcgear.com/files/html/index.php:87
    0.0012     598000   3. Mage_Core_Model_App->run() /www/sites/www.omcgear.com/files/html/app/Mage.php:685
    0.0037     915056   4. Mage_Core_Model_App->_initModules() /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/App.php:343
    0.5134     947272   5. Mage_Core_Model_Resource_Setup::applyAllUpdates() /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/App.php:417
    0.5433    3136768   6. Mage_Core_Model_Resource_Setup->applyUpdates() /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/Resource/Setup.php:235
    0.5433    3137112   7. Mage_Core_Model_Resource_Setup->_installResourceDb() /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/Resource/Setup.php:327
    0.5433    3137368   8. Mage_Core_Model_Resource_Setup->_modifyResourceDb() /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/Resource/Setup.php:421
    0.5436    3140936   9. include('/www/sites/www.omcgear.com/files/html/app/code/core/Enterprise/Mview/sql/enterprise_mview_setup/install-1.12.0.0.php') /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/Resource/Setup.php:624
    0.5442    3163696  10. Varien_Db_Adapter_Pdo_Mysql->createTable() /www/sites/www.omcgear.com/files/html/app/code/core/Enterprise/Mview/sql/enterprise_mview_setup/install-1.12.0.0.php:65
    0.5449    3184088  11. Varien_Db_Adapter_Pdo_Mysql->query() /www/sites/www.omcgear.com/files/html/lib/Varien/Db/Adapter/Pdo/Mysql.php:2117
    0.5450    3192312  12. Zend_Db_Adapter_Pdo_Abstract->query() /www/sites/www.omcgear.com/files/html/lib/Varien/Db/Adapter/Pdo/Mysql.php:428
    0.5451    3192312  13. Zend_Db_Adapter_Abstract->query() /www/sites/www.omcgear.com/files/html/lib/Zend/Db/Adapter/Pdo/Abstract.php:238
    0.5452    3195680  14. Zend_Db_Statement->execute() /www/sites/www.omcgear.com/files/html/lib/Zend/Db/Adapter/Abstract.php:480
    0.5452    3195680  15. Varien_Db_Statement_Pdo_Mysql->_execute() /www/sites/www.omcgear.com/files/html/app/code/core/Zend/Db/Statement.php:291
    0.5452    3195728  16. Zend_Db_Statement_Pdo->_execute() /www/sites/www.omcgear.com/files/html/lib/Varien/Db/Statement/Pdo/Mysql.php:110
    0.5452    3195776  17. PDOStatement->execute() /www/sites/www.omcgear.com/files/html/lib/Zend/Db/Statement/Pdo.php:228

        )

    [xdebug_message] => 
PDOException: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'enterprise_mview_metadata' already exists in /www/sites/www.omcgear.com/files/html/lib/Zend/Db/Statement/Pdo.php on line 228

Call Stack:
    0.0001     239120   1. {main}() /www/sites/www.omcgear.com/files/html/index.php:0
    0.0004     328960   2. Mage::run() /www/sites/www.omcgear.com/files/html/index.php:87
    0.0012     598000   3. Mage_Core_Model_App->run() /www/sites/www.omcgear.com/files/html/app/Mage.php:685
    0.0037     915056   4. Mage_Core_Model_App->_initModules() /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/App.php:343
    0.5134     947272   5. Mage_Core_Model_Resource_Setup::applyAllUpdates() /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/App.php:417
    0.5433    3136768   6. Mage_Core_Model_Resource_Setup->applyUpdates() /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/Resource/Setup.php:235
    0.5433    3137112   7. Mage_Core_Model_Resource_Setup->_installResourceDb() /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/Resource/Setup.php:327
    0.5433    3137368   8. Mage_Core_Model_Resource_Setup->_modifyResourceDb() /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/Resource/Setup.php:421
    0.5436    3140936   9. include('/www/sites/www.omcgear.com/files/html/app/code/core/Enterprise/Mview/sql/enterprise_mview_setup/install-1.12.0.0.php') /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/Resource/Setup.php:624
    0.5442    3163696  10. Varien_Db_Adapter_Pdo_Mysql->createTable() /www/sites/www.omcgear.com/files/html/app/code/core/Enterprise/Mview/sql/enterprise_mview_setup/install-1.12.0.0.php:65
    0.5449    3184088  11. Varien_Db_Adapter_Pdo_Mysql->query() /www/sites/www.omcgear.com/files/html/lib/Varien/Db/Adapter/Pdo/Mysql.php:2117
    0.5450    3192312  12. Zend_Db_Adapter_Pdo_Abstract->query() /www/sites/www.omcgear.com/files/html/lib/Varien/Db/Adapter/Pdo/Mysql.php:428
    0.5451    3192312  13. Zend_Db_Adapter_Abstract->query() /www/sites/www.omcgear.com/files/html/lib/Zend/Db/Adapter/Pdo/Abstract.php:238
    0.5452    3195680  14. Zend_Db_Statement->execute() /www/sites/www.omcgear.com/files/html/lib/Zend/Db/Adapter/Abstract.php:480
    0.5452    3195680  15. Varien_Db_Statement_Pdo_Mysql->_execute() /www/sites/www.omcgear.com/files/html/app/code/core/Zend/Db/Statement.php:291
    0.5452    3195728  16. Zend_Db_Statement_Pdo->_execute() /www/sites/www.omcgear.com/files/html/lib/Varien/Db/Statement/Pdo/Mysql.php:110
    0.5452    3195776  17. PDOStatement->execute() /www/sites/www.omcgear.com/files/html/lib/Zend/Db/Statement/Pdo.php:228

Zend_Db_Statement_Exception: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'enterprise_mview_metadata' already exists, query was: CREATE TABLE `enterprise_mview_metadata` (
  `metadata_id` int UNSIGNED NOT NULL auto_increment COMMENT 'Metadata Id' ,
  `view_name` varchar(64) NOT NULL COMMENT 'View name' ,
  `table_name` varchar(64) NOT NULL COMMENT 'Table name' ,
  `key_column` varchar(64) NULL COMMENT 'Key column name' ,
  `changelog_name` varchar(64) NULL COMMENT 'Changelog table name' ,
  `status` smallint NOT NULL COMMENT 'Materialized view status' ,
  `refreshed_at` timestamp NULL default NULL COMMENT 'Date of last view table refresh' ,
  PRIMARY KEY (`metadata_id`),
  UNIQUE `UNQ_ENTERPRISE_MVIEW_METADATA_VIEW_NAME` (`view_name`),
  UNIQUE `UNQ_ENTERPRISE_MVIEW_METADATA_TABLE_NAME` (`table_name`)
) COMMENT='Materialized view metadata' ENGINE=INNODB charset=utf8 COLLATE=utf8_general_ci in /www/sites/www.omcgear.com/files/html/lib/Zend/Db/Statement/Pdo.php on line 235

Call Stack:
    0.0001     239120   1. {main}() /www/sites/www.omcgear.com/files/html/index.php:0
    0.0004     328960   2. Mage::run() /www/sites/www.omcgear.com/files/html/index.php:87
    0.0012     598000   3. Mage_Core_Model_App->run() /www/sites/www.omcgear.com/files/html/app/Mage.php:685
    0.0037     915056   4. Mage_Core_Model_App->_initModules() /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/App.php:343
    0.5134     947272   5. Mage_Core_Model_Resource_Setup::applyAllUpdates() /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/App.php:417
    0.5433    3136768   6. Mage_Core_Model_Resource_Setup->applyUpdates() /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/Resource/Setup.php:235
    0.5433    3137112   7. Mage_Core_Model_Resource_Setup->_installResourceDb() /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/Resource/Setup.php:327
    0.5433    3137368   8. Mage_Core_Model_Resource_Setup->_modifyResourceDb() /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/Resource/Setup.php:421
    0.5436    3140936   9. include('/www/sites/www.omcgear.com/files/html/app/code/core/Enterprise/Mview/sql/enterprise_mview_setup/install-1.12.0.0.php') /www/sites/www.omcgear.com/files/html/app/code/core/Mage/Core/Model/Resource/Setup.php:624
    0.5442    3163696  10. Varien_Db_Adapter_Pdo_Mysql->createTable() /www/sites/www.omcgear.com/files/html/app/code/core/Enterprise/Mview/sql/enterprise_mview_setup/install-1.12.0.0.php:65
    0.5449    3184088  11. Varien_Db_Adapter_Pdo_Mysql->query() /www/sites/www.omcgear.com/files/html/lib/Varien/Db/Adapter/Pdo/Mysql.php:2117
    0.5460    3283416  12. Varien_Db_Adapter_Pdo_Mysql->_debugException() /www/sites/www.omcgear.com/files/html/lib/Varien/Db/Adapter/Pdo/Mysql.php:431

)