Changeset 4037
- Timestamp:
- 03/19/08 05:35:52 (16 months ago)
- Location:
- branches/0.10/lib/Doctrine
- Files:
-
- 4 modified
-
Connection.php (modified) (1 diff)
-
Connection/Firebird.php (modified) (1 diff)
-
Connection/Mssql.php (modified) (1 diff)
-
Connection/Oracle.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.10/lib/Doctrine/Connection.php
r4005 r4037 1485 1485 1486 1486 /** 1487 * modifyLimitQuery 1488 * 1489 * Some dbms require specific functionality for this. Check the other connection adapters for examples 1490 * 1491 * @return void 1492 */ 1493 public function modifyLimitQuery($query, $limit = false, $offset = false, $isManip = false) 1494 { 1495 } 1496 1497 /** 1487 1498 * returns a string representation of this object 1488 1499 * @return string -
branches/0.10/lib/Doctrine/Connection/Firebird.php
r3884 r4037 101 101 * @return string modified query 102 102 */ 103 public function modifyLimitQuery($query, $limit , $offset)103 public function modifyLimitQuery($query, $limit = false, $offset = false, $isManip = false) 104 104 { 105 105 if ($limit > 0) { -
branches/0.10/lib/Doctrine/Connection/Mssql.php
r3884 r4037 98 98 * @return string 99 99 */ 100 public function modifyLimitQuery($query, $limit , $offset, $isManip = false)100 public function modifyLimitQuery($query, $limit = false, $offset = false, $isManip = false) 101 101 { 102 102 if ($limit > 0) { -
branches/0.10/lib/Doctrine/Connection/Oracle.php
r3884 r4037 60 60 'pattern_escaping' => true, 61 61 ); 62 /** 63 $this->options['DBA_username'] = false; 64 $this->options['DBA_password'] = false; 65 $this->options['database_name_prefix'] = false; 66 $this->options['emulate_database'] = true; 67 $this->options['default_tablespace'] = false; 68 $this->options['default_text_field_length'] = 2000; 69 $this->options['result_prefetching'] = false; 70 */ 62 71 63 parent::__construct($manager, $adapter); 72 64 } … … 89 81 * @return string the modified query 90 82 */ 91 public function modifyLimitQuery($query, $limit , $offset)83 public function modifyLimitQuery($query, $limit = false, $offset = false, $isManip = false) 92 84 { 93 /**94 $e = explode("select ",strtolower($query));95 $e2 = explode(" from ",$e[1]);96 $fields = $e2[0];97 */98 85 $limit = (int) $limit; 99 86 $offset = (int) $offset;