Modified solution for bug 7040, because PostgreSQL have problems handling 'WHERE 1' statement.
Modified solution for bug 7040, because PostgreSQL have problems handling 'WHERE 1' statement.

StCyr/otrs,mbeijen/otrs-1,eliasp/otrs,muehlbauer/otrs,brandonshults01/otrs,linearregression/otrs,crythias/otrs,thorsteneckel/otrs,PortgasDAce/otrs,vlascoder/otrs,capeit-tto/otrs,mburggraf/otrs,xhoy/otrs,noritnk/otrs,MBRG/otrs,rudy500/otrs,eliasp/otrs,PortgasDAce/otrs,nilei/otrs,oiami/otrs,mburggraf/otrs,linearregression/otrs,oiami/otrs,brandonshults01/otrs,noritnk/otrs,StCyr/otrs,s7design/otrs,eliasp/otrs,PortgasDAce/otrs,thorsteneckel/otrs,nilei/otrs,moritz/otrs,crythias/otrs,MBRG/otrs,thorsteneckel/otrs,s7design/otrs,s7design/otrs,nilei/otrs,muehlbauer/otrs,mburggraf/otrs,xhoy/otrs,StCyr/otrs,balazj/otrs,linearregression/otrs,mbeijen/otrs-1,thorsteneckel/otrs,brandonshults01/otrs,thorsteneckel/otrs,noritnk/otrs,moritz/otrs,balazj/otrs,balazj/otrs,crythias/otrs,StCyr/otrs,linearregression/otrs,oiami/otrs,muehlbauer/otrs,PortgasDAce/otrs,xhoy/otrs,MBRG/otrs,mbeijen/otrs-1,oiami/otrs,linearregression/otrs,xhoy/otrs,balazj/otrs,moritz/otrs,crythias/otrs,StCyr/otrs,eliasp/otrs,rudy500/otrs,eliasp/otrs,vlascoder/otrs,MBRG/otrs,oiami/otrs,MBRG/otrs,balazj/otrs,crythias/otrs,PortgasDAce/otrs,muehlbauer/otrs,rudy500/otrs,mburggraf/otrs,capeit-tto/otrs,s7design/otrs,vlascoder/otrs,rudy500/otrs,xhoy/otrs,moritz/otrs,moritz/otrs,brandonshults01/otrs,capeit-tto/otrs,brandonshults01/otrs,nilei/otrs,muehlbauer/otrs,nilei/otrs,s7design/otrs,rudy500/otrs,mburggraf/otrs