}
query += " FROM Media"
" LEFT OUTER JOIN Pool ON (Media.PoolId=Pool.PoolId)"
- " LEFT OUTER JOIN Pool AS pol ON (Media.recyclepoolid=Pol.PoolId)"
+ " LEFT OUTER JOIN Pool AS Pol ON (Media.recyclepoolid=Pol.PoolId)"
" WHERE Media.MediaId='" + mediaId + "'"
" ORDER BY Pool.Name";
void MediaEdit::setSpins(int value)
{
int years, days, hours, minutes, seconds, left;
-
+
years = abs(value / 31536000);
left = value - years * 31536000;
days = abs(left / 86400);
" Media.LastWritten AS LastWritten"
" FROM Media"
" LEFT OUTER JOIN Pool ON (Media.PoolId=Pool.PoolId)"
- " LEFT OUTER JOIN Pool AS pol ON (Media.recyclepoolid=Pol.PoolId)"
+ " LEFT OUTER JOIN Pool AS Pol ON (Media.recyclepoolid=Pol.PoolId)"
" WHERE";
query += " Pool.Name='" + pool_listItem + "'";
query += " ORDER BY Media";