1
0
mirror of synced 2025-01-08 18:17:09 +03:00
doctrine2/Doctrine/Session/Pgsql.php

19 lines
447 B
PHP
Raw Normal View History

2006-05-30 13:02:35 +04:00
<?php
require_once("Common.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];
}
}
?>