fix subquery

jimlambrt-session-basics
Jim Lambert 6 years ago
parent b2660c4f83
commit ce033f87df

@ -13,7 +13,7 @@ with not_active as (
ss.state = 'pending' and
ss.session_id = $1 and
s.version = $2 and
s.public_id not in(select public_id from session_state where session_id = $1 and state = 'active')
s.public_id not in(select session_id from session_state where session_id = $1 and state = 'active')
)
select * from not_active;
`

Loading…
Cancel
Save