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

fix: WherePri function wrong in pgsql #3330 #3339

Merged
merged 7 commits into from
Mar 6, 2024
Merged

Conversation

oldme-git
Copy link
Member

@oldme-git oldme-git commented Feb 29, 2024

fixed #3330

Dear reviewer:
PgSQL 查询字段信息时会错误识别主键,最终导致 gdb.model.wherepri 查询有误。

修复方案

编写正确的 SQL 语句正确的识别主键
Select ... ( CASE WHEN d.contype = 'p' THEN 'pri' WHEN d.contype = 'u' THEN 'uni' ELSE'' END ) AS KEY from ...

@oldme-git oldme-git requested a review from gqcn March 1, 2024 06:41
@gqcn gqcn changed the title fix #3330 fix: add WherePri support for pgsql #3330 Mar 4, 2024
@gqcn gqcn changed the title fix: add WherePri support for pgsql #3330 fix: add WherePri function support for pgsql #3330 Mar 4, 2024
@oldme-git oldme-git changed the title fix: add WherePri function support for pgsql #3330 fix: WherePri function wrong in pgsql #3330 Mar 5, 2024
@gqcn gqcn merged commit 240dadf into gogf:master Mar 6, 2024
23 checks passed
@oldme-git oldme-git deleted the fix/#3330 branch March 6, 2024 11:31
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.

WherePri possible error
2 participants