File: view_bug.sql

package info (click to toggle)
gforge 4.5.14-22etch13
  • links: PTS
  • area: main
  • in suites: etch
  • size: 13,004 kB
  • ctags: 11,918
  • sloc: php: 36,047; sql: 29,050; sh: 10,538; perl: 6,496; xml: 3,810; makefile: 341; python: 263; ansic: 256
file content (18 lines) | stat: -rw-r--r-- 434 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
DROP VIEW bug;
CREATE VIEW bug AS 
	SELECT a.artifact_id AS bug_id,
	g.group_id,
	a.status_id,
	a.priority,
	a.category_id,
	a.submitted_by,
	a.assigned_to,
	a.open_date,
	a.summary,a.details,
	a.close_date,
	a.group_artifact_id AS bug_group_id,
	a.resolution_id AS resolution 
	FROM artifact a, groups g, artifact_group_list agl 
	WHERE a.group_artifact_id=agl.group_artifact_id 
	AND agl.group_id=g.group_id  
	AND agl.name='Bugs';