mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-26 02:30:21 -06:00
Use the correct OID for retrieving properties of freshly created exclusion constraints. Fixes #1896
This commit is contained in:
parent
e400693126
commit
4c19f93b3b
@ -622,7 +622,7 @@ class ExclusionConstraintView(PGChildNodeView):
|
||||
return make_json_response(
|
||||
status=400,
|
||||
success=0,
|
||||
errormsg=e
|
||||
errormsg=str(e)
|
||||
)
|
||||
|
||||
@check_precondition
|
||||
|
@ -1,4 +1,4 @@
|
||||
SELECT ct.oid
|
||||
SELECT ct.conindid AS oid
|
||||
FROM pg_constraint ct
|
||||
WHERE contype='x' AND
|
||||
ct.conname = {{ name|qtLiteral }};
|
@ -1,6 +1,6 @@
|
||||
SELECT ct.oid,
|
||||
ct.conname as name,
|
||||
NOT convalidated as convalidated
|
||||
SELECT ct.conindid AS oid,
|
||||
ct.conname AS name,
|
||||
NOT convalidated AS convalidated
|
||||
FROM pg_constraint ct
|
||||
WHERE contype='x' AND
|
||||
conrelid = {{tid}}::oid LIMIT 1;
|
@ -1,4 +1,4 @@
|
||||
SELECT ct.oid
|
||||
SELECT ct.conindid AS oid
|
||||
FROM pg_constraint ct
|
||||
WHERE contype='x' AND
|
||||
ct.conname = {{ name|qtLiteral }};
|
@ -1,6 +1,6 @@
|
||||
SELECT ct.oid,
|
||||
ct.conname as name,
|
||||
NOT convalidated as convalidated
|
||||
SELECT ct.conindid AS oid,
|
||||
ct.conname AS name,
|
||||
NOT convalidated AS convalidated
|
||||
FROM pg_constraint ct
|
||||
WHERE contype='x' AND
|
||||
conrelid = {{tid}}::oid LIMIT 1;
|
@ -1,4 +1,4 @@
|
||||
SELECT ct.oid
|
||||
SELECT ct.conindid AS oid
|
||||
FROM pg_constraint ct
|
||||
WHERE contype='x' AND
|
||||
ct.conname = {{ name|qtLiteral }};
|
@ -1,6 +1,6 @@
|
||||
SELECT ct.oid,
|
||||
ct.conname as name,
|
||||
NOT convalidated as convalidated
|
||||
SELECT ct.conindid AS oid,
|
||||
ct.conname AS name,
|
||||
NOT convalidated AS convalidated
|
||||
FROM pg_constraint ct
|
||||
WHERE contype='x' AND
|
||||
conrelid = {{tid}}::oid LIMIT 1;
|
Loading…
Reference in New Issue
Block a user