1
0
mirror of synced 2025-02-07 07:49:27 +03:00
doctrine2/classes/Session/Pgsql.class.php
doctrine 86b319e618 Improved validation API
require_once bug fix
2006-05-24 22:33:48 +00:00

19 lines
453 B
PHP

<?php
require_once("Common.class.php");
/**
* pgsql driver
*/
class Doctrine_Session_Pgsql extends Doctrine_Session_Common {
/**
* returns the next value in the given sequence
* @param string $sequence
* @return integer
*/
public function getNextID($sequence) {
$stmt = $this->query("SELECT NEXTVAL('$sequence')");
$data = $stmt->fetch(PDO::FETCH_NUM);
return $data[0];
}
}
?>