Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(contrib/drivers/mssql): mssql support LastInsertId#4051

Merged
hailaz merged 64 commits intogogf:masterfrom
lxy1151:fixed_mssqlserver_insert_and_get_id
Sep 28, 2025
Merged

feat(contrib/drivers/mssql): mssql support LastInsertId#4051
hailaz merged 64 commits intogogf:masterfrom
lxy1151:fixed_mssqlserver_insert_and_get_id

Conversation

@lxy1151
Copy link
Contributor

@lxy1151 lxy1151 commented Dec 17, 2024

修复mssqlserver的InsertAndGetId方法;插入记录如果是自增主键则返回ID

Copy link
Contributor Author

@lxy1151 lxy1151 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已经加入注释

@houseme houseme requested review from gqcn and wenzi1 December 17, 2024 10:57
@lxy1151 lxy1151 requested a review from gqcn September 25, 2025 05:55
@lxy1151
Copy link
Contributor Author

lxy1151 commented Sep 25, 2025

What else do I need to do?

@houseme houseme requested a review from Copilot September 25, 2025 07:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@houseme houseme requested review from Copilot and hailaz September 25, 2025 07:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@lxy1151
Copy link
Contributor Author

lxy1151 commented Sep 26, 2025

what else do I need to do?

@hailaz hailaz changed the title fixed:mssqlserver_insert_and_get fix(contrib/drivers/mssql): mssqlserver_insert_and_get Sep 28, 2025
@hailaz hailaz changed the title fix(contrib/drivers/mssql): mssqlserver_insert_and_get fix(contrib/drivers/mssql): mssql InsertAndGetId Sep 28, 2025
@hailaz hailaz changed the title fix(contrib/drivers/mssql): mssql InsertAndGetId fix(contrib/drivers/mssql): mssql support LastInsertId Sep 28, 2025
@hailaz hailaz changed the title fix(contrib/drivers/mssql): mssql support LastInsertId feat(contrib/drivers/mssql): mssql support LastInsertId Sep 28, 2025
@hailaz hailaz merged commit 7e9715a into gogf:master Sep 28, 2025
18 checks passed
@zromet
Copy link

zromet commented Nov 18, 2025

表名 TableName ,主键ID ,有触发器.
INSERT INTO TableName(ID) OUTPUT 1 as AffectCount VALUES(11)
Error: mssql: 如果 DML 语句包含不带 INTO 子句的 OUTPUT 子句,则该语句的目标表 'TableName' 不能具有任何启用的触发器。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants