From eba6be7c754a3a195ae83bb403aa7618b54ee482 Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Sat, 8 Jun 2013 21:58:15 +0300 Subject: [PATCH] remove unused option QUERY_LIMIT --- ipf/orm.php | 6 ------ ipf/orm/configurable.php | 1 - ipf/orm/manager.php | 1 - ipf/orm/query.php | 3 +-- 4 files changed, 1 insertion(+), 10 deletions(-) diff --git a/ipf/orm.php b/ipf/orm.php index 797f793..5f52119 100644 --- a/ipf/orm.php +++ b/ipf/orm.php @@ -111,7 +111,6 @@ final class IPF_ORM { const ATTR_PORTABILITY = 106; const ATTR_COLL_KEY = 108; - const ATTR_QUERY_LIMIT = 109; const ATTR_DEFAULT_TABLE_TYPE = 112; const ATTR_DEF_TEXT_LENGTH = 113; const ATTR_DEF_VARCHAR_LENGTH = 114; @@ -140,11 +139,6 @@ final class IPF_ORM { const ATTR_SINGULARIZE_IMPORT = 163; const ATTR_USE_DQL_CALLBACKS = 164; - const LIMIT_ROWS = 1; - const QUERY_LIMIT_ROWS = 1; - const LIMIT_RECORDS = 2; - const QUERY_LIMIT_RECORDS = 2; - const FETCH_IMMEDIATE = 0; const FETCH_BATCH = 1; const FETCH_OFFSET = 3; diff --git a/ipf/orm/configurable.php b/ipf/orm/configurable.php index 98bf3a1..0c66614 100644 --- a/ipf/orm/configurable.php +++ b/ipf/orm/configurable.php @@ -62,7 +62,6 @@ abstract class IPF_ORM_Configurable extends IPF_ORM_Locator_Injectable } } break; - case IPF_ORM::ATTR_QUERY_LIMIT: case IPF_ORM::ATTR_QUOTE_IDENTIFIER: case IPF_ORM::ATTR_PORTABILITY: case IPF_ORM::ATTR_DEFAULT_TABLE_TYPE: diff --git a/ipf/orm/manager.php b/ipf/orm/manager.php index b32b49d..f78e88f 100644 --- a/ipf/orm/manager.php +++ b/ipf/orm/manager.php @@ -25,7 +25,6 @@ class IPF_ORM_Manager extends IPF_ORM_Configurable implements Countable, Iterato IPF_ORM::ATTR_QUERY_CACHE => null, IPF_ORM::ATTR_LOAD_REFERENCES => true, IPF_ORM::ATTR_THROW_EXCEPTIONS => true, - IPF_ORM::ATTR_QUERY_LIMIT => IPF_ORM::LIMIT_RECORDS, IPF_ORM::ATTR_IDXNAME_FORMAT => "%s_idx", IPF_ORM::ATTR_SEQNAME_FORMAT => "%s_seq", IPF_ORM::ATTR_TBLNAME_FORMAT => "%s", diff --git a/ipf/orm/query.php b/ipf/orm/query.php index b087a6d..c0cad62 100644 --- a/ipf/orm/query.php +++ b/ipf/orm/query.php @@ -766,8 +766,7 @@ class IPF_ORM_Query extends IPF_ORM_Query_Abstract implements Countable, Seriali $table = $map['table']; $rootAlias = key($this->_queryComponents); - if ( ! empty($this->_sqlParts['limit']) && $this->_needsSubquery && - $table->getAttribute(IPF_ORM::ATTR_QUERY_LIMIT) == IPF_ORM::LIMIT_RECORDS) { + if (!empty($this->_sqlParts['limit']) && $this->_needsSubquery) { $needsSubQuery = true; } -- 2.49.0