]> git.andy128k.dev Git - ipf-legacy-orm.git/commitdiff
cleanup
authorAndrey Kutejko <andy128k@gmail.com>
Sat, 8 Jun 2013 21:02:52 +0000 (00:02 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Sat, 8 Jun 2013 21:02:52 +0000 (00:02 +0300)
ipf/orm/connection.php
ipf/orm/connection/mysql.php

index 351c75d06ec083ee29e28665e1b9ce09210785fa..9462148faa0618acb3aff505d489779817c4a215 100644 (file)
@@ -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)) {
index 6327fa3c5f4b5feb419e8fc8514789dcc900216f..7b7a1402e7fd5c8e3e8dfc351b56a7c13f34d0a1 100644 (file)
@@ -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' => "'",