2008-09-12 12:51:56 +04:00
|
|
|
<?php
|
|
|
|
|
2009-01-22 22:38:10 +03:00
|
|
|
namespace Doctrine\DBAL\Platforms;
|
2008-09-12 12:51:56 +04:00
|
|
|
|
2009-01-22 22:38:10 +03:00
|
|
|
class Db2Platform extends AbstractPlatform
|
2008-09-12 12:51:56 +04:00
|
|
|
{
|
2009-05-27 22:54:40 +04:00
|
|
|
public function getSequenceNextValSql($sequenceName)
|
|
|
|
{
|
2008-09-12 12:51:56 +04:00
|
|
|
return 'SELECT NEXTVAL FOR ' . $this->quoteIdentifier($sequenceName)
|
|
|
|
. ' FROM SYSIBM.SYSDUMMY1';
|
|
|
|
}
|
2009-05-27 22:54:40 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the platform name for this instance
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getName()
|
|
|
|
{
|
|
|
|
return 'db2';
|
|
|
|
}
|
2009-02-20 08:46:20 +03:00
|
|
|
}
|