'tickets' can use 'threads' now
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@706 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -626,6 +626,14 @@ PGresult * Db::GetItemsQuery(const DbItemQuery & iq, bool skip_other_sel)
|
||||
const char * if_and = "";
|
||||
|
||||
if( iq.where_id ) { query << R(if_and) << R("item.id=") << iq.id ; if_and = add_and; }
|
||||
|
||||
if( iq.id_tab && !iq.id_tab->empty() )
|
||||
{
|
||||
CreateIdList(*iq.id_tab, iq_id_list);
|
||||
query << R(if_and) << R("item.id in ") << R(iq_id_list);
|
||||
if_and = add_and;
|
||||
}
|
||||
|
||||
if( iq.where_parent_id ){ query << R(if_and) << R("parent_id=") << iq.parent_id ; if_and = add_and; }
|
||||
|
||||
if( iq.where_type )
|
||||
|
||||
Reference in New Issue
Block a user