data type check
This commit is contained in:
parent
431b63d6bd
commit
0ea15604fd
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user