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 282... Zeile 282...
282
 
282
 
283
			// We have to strip the ORDER BY clause
283
			// We have to strip the ORDER BY clause
Zeile 284... Zeile 284...
284
			$sql = trim(substr($sql, 0, strrpos($sql, $orderby)));
284
			$sql = trim(substr($sql, 0, strrpos($sql, $orderby)));
285
 
285
 
286
			// Get the fields to select from our subquery, so that we can avoid CI_rownum appearing in the actual results
286
			// Get the fields to select from our subquery, so that we can avoid CI_rownum appearing in the actual results
287
			if (count($this->qb_select) === 0)
287
			if (count($this->qb_select) === 0 OR strpos(implode(',', $this->qb_select), '*') !== FALSE)
288
			{
288
			{
289
				$select = '*'; // Inevitable
289
				$select = '*'; // Inevitable
290
			}
290
			}
Zeile 329... Zeile 329...
329
		if (version_compare($this->version(), '10', '>='))
329
		if (version_compare($this->version(), '10', '>='))
330
		{
330
		{
331
			return parent::_insert_batch($table, $keys, $values);
331
			return parent::_insert_batch($table, $keys, $values);
332
		}
332
		}
Zeile 333... Zeile 333...
333
 
333
 
334
		return ($this->db->db_debug) ? $this->db->display_error('db_unsupported_feature') : FALSE;
334
		return ($this->db_debug) ? $this->display_error('db_unsupported_feature') : FALSE;
Zeile -... Zeile 335...
-
 
335
	}
-
 
336
 
-
 
337
	// --------------------------------------------------------------------
-
 
338
 
-
 
339
	/**
-
 
340
	 * Database version number
-
 
341
	 *
-
 
342
	 * @return      string
-
 
343
	 */
-
 
344
	public function version()
-
 
345
	{
-
 
346
		if (isset($this->data_cache['version']))
-
 
347
		{
-
 
348
			return $this->data_cache['version'];
-
 
349
		}
-
 
350
 
335
	}
351
		return $this->data_cache['version'] = $this->conn_id->query("SELECT SERVERPROPERTY('ProductVersion') AS ver")->fetchColumn(0);