From: Andrey Kutejko Date: Sat, 8 Jun 2013 21:02:52 +0000 (+0300) Subject: cleanup X-Git-Tag: 0.6~111 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=bdf3ef434f3b410dac1121b663e369df4ffde865;p=ipf-legacy-orm.git cleanup --- diff --git a/ipf/orm/connection.php b/ipf/orm/connection.php index 351c75d..9462148 100644 --- a/ipf/orm/connection.php +++ b/ipf/orm/connection.php @@ -255,13 +255,6 @@ abstract class IPF_ORM_Connection extends IPF_ORM_Configurable implements Counta $this->_count++; } - public function supports($feature) - { - return (isset($this->supported[$feature]) - && ($this->supported[$feature] === 'emulated' - || $this->supported[$feature])); - } - public function replace(IPF_ORM_Table $table, array $fields, array $keys) { if (empty($keys)) { diff --git a/ipf/orm/connection/mysql.php b/ipf/orm/connection/mysql.php index 6327fa3..7b7a140 100644 --- a/ipf/orm/connection/mysql.php +++ b/ipf/orm/connection/mysql.php @@ -6,26 +6,6 @@ class IPF_ORM_Connection_Mysql extends IPF_ORM_Connection public function __construct(IPF_ORM_Manager $manager, $adapter) { - $this->supported = array( - 'sequences' => 'emulated', - 'indexes' => true, - 'affected_rows' => true, - 'transactions' => true, - 'savepoints' => false, - 'summary_functions' => true, - 'order_by_text' => true, - 'current_id' => 'emulated', - 'limit_queries' => true, - 'LOBs' => true, - 'replace' => true, - 'sub_selects' => true, - 'auto_increment' => true, - 'primary_key' => true, - 'result_introspection' => true, - 'prepared_statements' => 'emulated', - 'identifier_quoting' => true, - 'pattern_escaping' => true - ); $this->attributes[IPF_ORM::ATTR_DEFAULT_TABLE_TYPE] = 'INNODB'; $this->properties['string_quoting'] = array('start' => "'",