if (empty($seq) && count($identifier) == 1 && $identifier[0] == $table->getIdentifier() &&
$table->getIdentifierType() != IPF_ORM::IDENTIFIER_NATURAL) {
- if (strtolower($this->conn->getDriverName()) == 'pgsql') {
+ if (strtolower($this->conn->getDriverName()) == 'Pgsql') {
$seq = $table->getTableName() . '_' . $identifier[0];
}
// what about composite keys?
$idColumnName = $table->getColumnName($table->getIdentifier());
switch (strtolower($this->_conn->getDriverName())) {
- case 'mysql':
+ case 'Mysql':
// mysql doesn't support LIMIT in subqueries
$list = $this->_conn->execute($subquery, $params)->fetchAll(IPF_ORM::FETCH_COLUMN);
$subquery = implode(', ', array_map(array($this->_conn, 'quote'), $list));
break;
- case 'pgsql':
+ case 'Pgsql':
// pgsql needs special nested LIMIT subquery
$subquery = 'SELECT ipf_orm_subquery_alias.' . $idColumnName . ' FROM (' . $subquery . ') AS ipf_orm_subquery_alias';
break;