Commit 0ea15604 authored by zYne's avatar zYne

data type check

parent 431b63d6
......@@ -93,6 +93,8 @@ class Doctrine_Connection_Oracle extends Doctrine_Connection
$e2 = explode(" from ",$e[1]);
$fields = $e2[0];
*/
$limit = (int) $limit;
$offset = (int) $offset;
if (preg_match('/^\s*SELECT/i', $query)) {
if ( ! preg_match('/\sFROM\s/i', $query)) {
$query .= " FROM dual";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment