protected getPreGeneratedSelectKey ( $connection, $parameter ) : string | ||
리턴 | string | new insert ID if pre-select key statement was executed, null otherwise. |
protected function getPreGeneratedSelectKey($connection, $parameter)
{
if ($this->_statement instanceof TSqlMapInsert) {
$selectKey = $this->_statement->getSelectKey();
if ($selectKey !== null && !$selectKey->getIsAfter()) {
return $this->executeSelectKey($connection, $parameter, $selectKey);
}
}
}