Skip to content

Commit 8aeddb3

Browse files
committed
Merge branch 'master' of github.com:spaceuptech/space-cloud
2 parents 683bb48 + 2ed66ce commit 8aeddb3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

gateway/modules/crud/sql/describe.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,9 @@ func (s *SQL) getForeignKeyDetails(ctx context.Context, project, col string) ([]
128128
AND ccu.table_schema = tc.table_schema
129129
JOIN information_schema.referential_constraints AS rc
130130
ON tc.constraint_name = rc.constraint_name
131-
AND rc.unique_constraint_schema= $1
132-
WHERE tc.constraint_type = 'FOREIGN KEY' AND tc.table_schema = $2 AND tc.table_name= $3
131+
WHERE tc.constraint_type = 'FOREIGN KEY' AND tc.table_schema = $1 AND tc.table_name= $2
133132
`
134-
args = append(args, project, project, col)
133+
args = append(args, project, col)
135134
case utils.SQLServer:
136135
queryString = `SELECT
137136
CCU.TABLE_NAME, CCU.COLUMN_NAME, CCU.CONSTRAINT_NAME, RC.DELETE_RULE,

0 commit comments

Comments
 (0)