spadefoot/kohana-orm-leap — Issue #11: Error doing a select with Oracle 11g
Author: ekarlso
Created: 2012-01-13 14:18:40+00:00
State: open

$b = DB_SQL::select('tech')->from('ENVIRONMENTS');
$this->content = $b->query();

ErrorException [ Warning ]: oci_execute() [function.oci-execute]: ORA-00911: invalid character
MODPATH\leap\classes\base\db\oracle\connection\standard.php [ 125 ]
120	if ( ! is_null($result_set)) {
121	$this->sql = $sql;
122	return $result_set;
123	}
124	$resource_id = @oci_parse($this->link_id, $sql);
125	if (($resource_id === FALSE) || !oci_execute($resource_id, $this->execution_mode)) {
126	$oci_error = oci_error($resource_id);
127	$this->error = 'Message: Failed to query SQL statement. Reason: ' . $oci_error['message'];
128	throw new Kohana_SQL_Exception($this->error, array(':sql' => $sql, ':type' => $type));
129	}
130	$records = array();