Skip to content

Commit

Permalink
Improve
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Dec 17, 2023
1 parent 9438a39 commit 9f32838
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DMLQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ final class DMLQueryBuilder extends AbstractDMLQueryBuilder
public function insertWithReturningPks(string $table, QueryInterface|array $columns, array &$params = []): string
{
$tableSchema = $this->schema->getTableSchema($table);
$primaryKeys = $tableSchema?->getPrimaryKey() ?? [];
$primaryKeys = $tableSchema?->getPrimaryKey();

if ($primaryKeys === []) {
if (empty($primaryKeys)) {
return $this->insert($table, $columns, $params);
}

Expand Down

0 comments on commit 9f32838

Please sign in to comment.