Skip to content

Commit a01511d

Browse files
authored
Update CMssqlPdoAdapter.php
1 parent e367ebf commit a01511d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

framework/db/schema/mssql/CMssqlPdoAdapter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class CMssqlPdoAdapter extends PDO
2323
* @param string|null sequence name. Defaults to null
2424
* @return integer last inserted id
2525
*/
26+
#[ReturnTypeWillChange]
2627
public function lastInsertId ($sequence=NULL)
2728
{
2829
return $this->query('SELECT CAST(COALESCE(SCOPE_IDENTITY(), @@IDENTITY) AS bigint)')->fetchColumn();

0 commit comments

Comments
 (0)