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 350... Zeile 350...
350
 
350
 
351
	/**
351
	/**
352
	 * Error
352
	 * Error
353
	 *
353
	 *
354
	 * Returns an array containing code and message of the last
354
	 * Returns an array containing code and message of the last
355
	 * database error that has occured.
355
	 * database error that has occurred.
356
	 *
356
	 *
357
	 * @return	array
357
	 * @return	array
358
	 */
358
	 */
359
	public function error()
359
	public function error()
Zeile 451... Zeile 451...
451
 
451
 
452
			// We have to strip the ORDER BY clause
452
			// We have to strip the ORDER BY clause
Zeile 453... Zeile 453...
453
			$sql = trim(substr($sql, 0, strrpos($sql, $orderby)));
453
			$sql = trim(substr($sql, 0, strrpos($sql, $orderby)));
454
 
454
 
455
			// Get the fields to select from our subquery, so that we can avoid CI_rownum appearing in the actual results
455
			// Get the fields to select from our subquery, so that we can avoid CI_rownum appearing in the actual results
456
			if (count($this->qb_select) === 0)
456
			if (count($this->qb_select) === 0 OR strpos(implode(',', $this->qb_select), '*') !== FALSE)
457
			{
457
			{
458
				$select = '*'; // Inevitable
458
				$select = '*'; // Inevitable
459
			}
459
			}
Zeile 498... Zeile 498...
498
		if (version_compare($this->version(), '10', '>='))
498
		if (version_compare($this->version(), '10', '>='))
499
		{
499
		{
500
			return parent::_insert_batch($table, $keys, $values);
500
			return parent::_insert_batch($table, $keys, $values);
501
		}
501
		}
Zeile 502... Zeile 502...
502
 
502
 
503
		return ($this->db->db_debug) ? $this->db->display_error('db_unsupported_feature') : FALSE;
503
		return ($this->db_debug) ? $this->display_error('db_unsupported_feature') : FALSE;
Zeile 504... Zeile 504...
504
	}
504
	}
Zeile 505... Zeile 505...
505
 
505