1
0
mirror of synced 2024-12-13 14:56:01 +03:00

data type check

This commit is contained in:
zYne 2007-06-24 21:05:12 +00:00
parent 431b63d6bd
commit 0ea15604fd

View File

@ -93,6 +93,8 @@ class Doctrine_Connection_Oracle extends Doctrine_Connection
$e2 = explode(" from ",$e[1]); $e2 = explode(" from ",$e[1]);
$fields = $e2[0]; $fields = $e2[0];
*/ */
$limit = (int) $limit;
$offset = (int) $offset;
if (preg_match('/^\s*SELECT/i', $query)) { if (preg_match('/^\s*SELECT/i', $query)) {
if ( ! preg_match('/\sFROM\s/i', $query)) { if ( ! preg_match('/\sFROM\s/i', $query)) {
$query .= " FROM dual"; $query .= " FROM dual";