Skip to content

Commit 692faa8

Browse files
committed
Small performance improvement
1 parent f12c2c3 commit 692faa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tqdev/PhpCrudApi/Database/GenericDB.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function createSingle(ReflectedTable $table, array $columnValues) /*: ?St
131131
break;
132132
}
133133
$pkValue = $stmt->fetchColumn(0);
134-
if ($this->driver == 'sqlsrv' && $table->getPk()->isInteger()) {
134+
if ($this->driver == 'sqlsrv' && $table->getPk()->getType() == 'bigint') {
135135
return (int) $pkValue;
136136
}
137137
return $pkValue;

0 commit comments

Comments
 (0)