<?php/** * firebird driver */classDoctrine_Session_FirebirdextendsDoctrine_Session{publicfunctionmodifyLimitQuery($query,$limit,$offset){returnpreg_replace("/([\s(])*SELECT/i","\\1SELECT TOP($from, $count)",$query);}/** * returns the next value in the given sequence * @param string $sequence * @return integer */publicfunctiongetNextID($sequence){$stmt=$this->query("SELECT UNIQUE FROM ".$sequence);$data=$stmt->fetch(PDO::FETCH_NUM);return$data[0];}}?>