Skip to content

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
@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