Subversion-Projekte lars-tiefland.ci

Revision

Revision 2049 | Revision 2242 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 2049 Revision 2107
Zeile 356... Zeile 356...
356
 
356
 
357
	/**
357
	/**
358
	 * Error
358
	 * Error
359
	 *
359
	 *
360
	 * Returns an array containing code and message of the last
360
	 * Returns an array containing code and message of the last
361
	 * database error that has occured.
361
	 * database error that has occurred.
362
	 *
362
	 *
363
	 * @return	array
363
	 * @return	array
364
	 */
364
	 */
365
	public function error()
365
	public function error()
Zeile 476... Zeile 476...
476
 
476
 
477
			// We have to strip the ORDER BY clause
477
			// We have to strip the ORDER BY clause
Zeile 478... Zeile 478...
478
			$sql = trim(substr($sql, 0, strrpos($sql, $orderby)));
478
			$sql = trim(substr($sql, 0, strrpos($sql, $orderby)));
479
 
479
 
480
			// Get the fields to select from our subquery, so that we can avoid CI_rownum appearing in the actual results
480
			// Get the fields to select from our subquery, so that we can avoid CI_rownum appearing in the actual results
481
			if (count($this->qb_select) === 0)
481
			if (count($this->qb_select) === 0 OR strpos(implode(',', $this->qb_select), '*') !== FALSE)
482
			{
482
			{
483
				$select = '*'; // Inevitable
483
				$select = '*'; // Inevitable
484
			}
484
			}
Zeile 523... Zeile 523...
523
		if (version_compare($this->version(), '10', '>='))
523
		if (version_compare($this->version(), '10', '>='))
524
		{
524
		{
525
			return parent::_insert_batch($table, $keys, $values);
525
			return parent::_insert_batch($table, $keys, $values);
526
		}
526
		}
Zeile 527... Zeile 527...
527
 
527
 
528
		return ($this->db->db_debug) ? $this->db->display_error('db_unsupported_feature') : FALSE;
528
		return ($this->db_debug) ? $this->display_error('db_unsupported_feature') : FALSE;
Zeile 529... Zeile 529...
529
	}
529
	}
Zeile 530... Zeile 530...
530
 
530