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.

djoudi/otrs-gitimport-test,djoudi/otrs-gitimport-test,djoudi/otrs-gitimport-test