Changeset 5307
- Timestamp:
- 12/18/08 00:15:10 (7 months ago)
- Location:
- branches
- Files:
-
- 2 added
- 4 modified
-
1.0/lib/Doctrine/Query.php (modified) (1 diff)
-
1.0/lib/Doctrine/Query/Abstract.php (modified) (1 diff)
-
1.0/tests/Ticket/1762TestCase.php (added)
-
1.1/lib/Doctrine/Query.php (modified) (1 diff)
-
1.1/lib/Doctrine/Query/Abstract.php (modified) (2 diffs)
-
1.1/tests/Ticket/1762TestCase.php (added)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/lib/Doctrine/Query.php
r5303 r5307 1226 1226 if ($driverName == 'pgsql' || $driverName == 'oracle' || $driverName == 'oci') { 1227 1227 foreach ($this->_sqlParts['orderby'] as $part) { 1228 $part = trim($part); 1228 // Remove identifier quoting if it exists 1229 $callback = create_function('$e', 'return trim($e, \'[]`"\');'); 1230 $part = trim(implode('.', array_map($callback, explode('.', $part)))); 1229 1231 $e = $this->_tokenizer->bracketExplode($part, ' '); 1230 1232 $part = trim($e[0]); -
branches/1.0/lib/Doctrine/Query/Abstract.php
r5303 r5307 539 539 public function getParams($params = array()) 540 540 { 541 return array_merge( $params, $this->_params['join'], $this->_params['set'], $this->_params['where'], $this->_params['having']);541 return array_merge((array) $params, $this->_params['join'], $this->_params['set'], $this->_params['where'], $this->_params['having']); 542 542 } 543 543 -
branches/1.1/lib/Doctrine/Query.php
r5303 r5307 1307 1307 if ($driverName == 'pgsql' || $driverName == 'oracle' || $driverName == 'oci') { 1308 1308 foreach ($this->_sqlParts['orderby'] as $part) { 1309 $part = trim($part); 1309 // Remove identifier quoting if it exists 1310 $callback = create_function('$e', 'return trim($e, \'[]`"\');'); 1311 $part = trim(implode('.', array_map($callback, explode('.', $part)))); 1310 1312 $e = $this->_tokenizer->bracketExplode($part, ' '); 1311 1313 $part = trim($e[0]); -
branches/1.1/lib/Doctrine/Query/Abstract.php
r5303 r5307 558 558 { 559 559 return array_merge( 560 $params,$this->_params['exec'],560 (array) $params, (array) $this->_params['exec'], 561 561 $this->_params['join'], $this->_params['set'], 562 562 $this->_params['where'], $this->_params['having'] … … 1065 1065 if ($this->isLimitSubqueryUsed() && 1066 1066 $this->_conn->getAttribute(Doctrine::ATTR_DRIVER_NAME) !== 'mysql') { 1067 $params = array_merge( $params,$params);1067 $params = array_merge((array) $params, (array) $params); 1068 1068 } 1069 1069