From 0ea15604fd5ea1082931754211ae37c54b9c15a5 Mon Sep 17 00:00:00 2001 From: zYne Date: Sun, 24 Jun 2007 21:05:12 +0000 Subject: [PATCH] data type check --- lib/Doctrine/Connection/Oracle.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Doctrine/Connection/Oracle.php b/lib/Doctrine/Connection/Oracle.php index 986a5bc03..b1e278434 100644 --- a/lib/Doctrine/Connection/Oracle.php +++ b/lib/Doctrine/Connection/Oracle.php @@ -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";