Skip to content

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