Class Mage_Core_Model_Resource_Setup_Query_Modifier
Modifier of queries, developed for backwards compatibility on MySQL, while creating foreign keys
Package: Mage\Core
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Core/Model/Resource/Setup/Query/Modifier.php
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Core/Model/Resource/Setup/Query/Modifier.php
public
|
|
protected
array
|
#
_getColumnDefinitionFromSql( string $sql, string $column )
Returns column definition from CREATE TABLE sql |
protected
string
|
#
_firstReplace( string $haystack, string $needle, array $replacement, boolean $caseInsensitive = false )
Replaces first occurence of $needle in a $haystack |
protected
|
#
_fixColumnDefinitionInSql( string & $sql, string $column, array $refColumnDefinition )
Fixes column definition in CREATE TABLE sql to match defintion of column it's set to |
protected
|
#
_fixColumnDefinitionInTable( string $table, string $column, array $refColumnDefinition )
Fixes column definition in already existing table, so outgoing foreign key will be successfully set |
protected
array|null
|
#
_getColumnDefinitionFromTable( string $table, string $column )
Returns column definition from already existing table |
protected
boolean
|
|
protected
string
|
#
_prepareIdentifier( string $identifier )
Trims and lowercases identifier, to make common view of all of them |
public
|
#
processQuery( string & $sql, array & $bind )
Processes query, modifies targeted columns to fit foreign keys restrictions |
protected
Varien_Db_Adapter_Pdo_Mysql
|
$_adapter |
|
#
MySQL adapter instance |
protected
array
|
$_processedTypes | array('tinyint', 'smallint', 'mediumint', 'int', 'longint') |
#
Types of column we process for foreign keys |