forked from HPR/hpr_generator
		
	Refactor MySQL database specific SQL
This commit is contained in:
		
							
								
								
									
										18
									
								
								templates/queries-correspondent-mysql.tpl.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								templates/queries-correspondent-mysql.tpl.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| <!--% query_hpr_shows = ' | ||||
| 		SELECT  | ||||
| 		eps.id,  | ||||
| 		CASE eps.explicit WHEN 1 THEN \'Explicit\' ELSE \'Clean\' END AS explicit ,  | ||||
| 		eps.date, eps.license, eps.duration, | ||||
| 		eps.title, eps.summary, eps.tags,  | ||||
| 		eps.notes, | ||||
| 		hosts.local_image, | ||||
| 		hosts.hostid,  | ||||
| 		hosts.host, hosts.email, | ||||
| 		miniseries.name AS series, miniseries.id AS seriesid | ||||
| 	FROM eps  | ||||
| 	INNER JOIN hosts ON eps.hostid = hosts.hostid  | ||||
| 	INNER JOIN miniseries ON eps.series = miniseries.id | ||||
| 	WHERE hosts.hostid = ? AND eps.date < DATE_ADD(NOW(), INTERVAL 1 DAY)  | ||||
| 	ORDER BY eps.id DESC	 | ||||
| 	' | ||||
| %--> | ||||
		Reference in New Issue
	
	Block a user