mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-30 10:22:27 +01:00
Add tests to repository
This commit is contained in:
17
tests/sql/ex.sql
Normal file
17
tests/sql/ex.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
select user_id, count(*) as how_many
|
||||
from bboard
|
||||
where not exists (select 1 from
|
||||
bboard_authorized_maintainers bam
|
||||
where bam.user_id = bboard.user_id)
|
||||
and posting_time + 60 > sysdate
|
||||
group by user_id
|
||||
order by how_many desc;
|
||||
|
||||
select user_id, count(*) as how_many
|
||||
from bboard
|
||||
where posting_time + 60 > sysdate
|
||||
group by user_id
|
||||
having not exists (select 1 from
|
||||
bboard_authorized_maintainers bam
|
||||
where bam.user_id = bboard.user_id)
|
||||
order by how_many desc;
|
||||
Reference in New Issue
Block a user