We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 367cd21 commit f86f6b5Copy full SHA for f86f6b5
function/ts/insertsteward.sql
@@ -13,12 +13,8 @@ AS $function$
13
WITH newstew AS (
14
SELECT stewardid,
15
_databaseid AS dbid
16
- FROM ti.stewards AS stw WHERE (stw.contactid = _contactid)) AS stewardid
17
- WHERE NOT (stewardid =
18
-
19
20
- )
+ FROM ti.stewards AS stw WHERE (stw.contactid = _contactid))
21
insert into ti.stewarddatabases(stewardid, databaseid)
22
- values ((select stewardid from ti.stewards AS stw where (stw.contactid IN _contactid)), _databaseid)
+ values ((select stewardid from ti.stewards AS stw where (stw.contactid = _contactid)), _databaseid)
23
RETURNING stewardid
24
$function$
0 commit comments