Re: "rev_multilink=-1" filter can induce MySQL error

Ralf Schlatterbeck <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.user
Message-ID <[email protected]>
On Sat, Aug 07, 2021 at 09:45:07PM +0200, Nagy Gabor wrote:
> Dear Roundup Users,
> Dear Ralph :)
> 
> I am using rev_multilink for detecting orphan files:
> 
> I have an IssueClass "issue" with property
> documents=Multilink("doc", rev_multilink="owner").
> 
> And "doc" is a FileClass. I am using MySQL backend.
> 
> I observed, that if I do db.doc.filter(None, {'owner':'-1'}), then I
> get the following error if all (non-retired) issues have unset
> documents properties, i.e. the above command should list all elements
> of the Class doc:

Which version of roundup are you using? Reverse multilink searching has
only recently been fixed.

Ralf
-- 
Dr. Ralf Schlatterbeck                  Tel:   +43/2243/26465-16
Open Source Consulting                  www:   www.runtux.com
Reichergasse 131, A-3411 Weidling       email: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.