From: Andrey Kutejko Date: Sat, 8 Jun 2013 18:58:15 +0000 (+0300) Subject: remove unused option QUERY_LIMIT X-Git-Tag: 0.6~119 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=25883261481e5fdc1c9245cdc229613d9e45bd2c;p=ipf-legacy-orm.git remove unused option QUERY_LIMIT --- 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; }