Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangpeng
dinky
Commits
b6a541b4
Unverified
Commit
b6a541b4
authored
Aug 15, 2023
by
javaht
Committed by
GitHub
Aug 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix one table hava two or more primary key (#2209)
parent
c8143978
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
PostgreSqlQuery.java
...c/main/java/org/dinky/metadata/query/PostgreSqlQuery.java
+1
-1
No files found.
dinky-metadata/dinky-metadata-postgresql/src/main/java/org/dinky/metadata/query/PostgreSqlQuery.java
View file @
b6a541b4
...
...
@@ -59,7 +59,7 @@ public class PostgreSqlQuery extends AbstractDBQuery {
+
" , col.ordinal_position as ordinal_position\n"
+
" , col.udt_name as type\n"
+
" , (CASE WHEN (SELECT COUNT(*) FROM pg_constraint AS PC WHERE b.attnum"
+
" =
PC.conkey[1]
AND PC.contype = 'p' and PC.conrelid = c.oid) > 0 \n"
+
" =
ANY(PC.conkey)
AND PC.contype = 'p' and PC.conrelid = c.oid) > 0 \n"
+
"THEN 'PRI' ELSE '' END) AS key\n"
+
" , col_description(c.oid, col.ordinal_position) AS comment\n"
+
" , col.column_default AS column_default\n"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment