Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(drivers/pgsql): pgsql returning id should use quotation marks,when primary key is capital #3638

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

Insua
Copy link
Contributor

@Insua Insua commented Jun 12, 2024

When the field name in pgsql is uppercase, the field must be enclosed in quotation marks; otherwise, an error will occur indicating that the field cannot be found. Therefore, a modification was made to change it to RETURNING "ID" in this style.

当pgsql的字段名大写时,必须把字段用"给引用起来,否则会报错,提示找不到字段,所以作出修改,改成了 RETURNING "ID",这种样式。

@gqcn gqcn merged commit d5825ab into gogf:master Jun 12, 2024
23 checks passed
@gqcn gqcn changed the title drivers/pgsql:pgsql returning id should use quotation marks,when primary key is capital refactor(drivers/pgsql): pgsql returning id should use quotation marks,when primary key is capital Jun 26, 2024
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.

2 participants