FieldLikePredicate and ToQueryText

Posts   
 
    
gfrankol
User
Posts: 10
Joined: 10-Apr-2017
# Posted on: 07-Jul-2017 11:02:01   

Hello,

After upgrading from 2.5 to 4.2, the class FieldReverseLikePredicate which we copied from http://llblgen.com/tinyforum/Messages.aspx?ThreadID=14430 is invalid.

Then we changed the "public override string ToQueryText(ref int uniqueMarker, bool inHavingClause)" to "public override string ToQueryText(bool inHavingClause)".

The problem is the new ToQueryText never gets executed.

Please help.

gfrankol
User
Posts: 10
Joined: 10-Apr-2017
# Posted on: 07-Jul-2017 13:00:27   

Any help on this? Unfortunately we put the project in production and this is a blocker and we cannot revert the code.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 07-Jul-2017 22:21:34   

It would have helped if you had attached your own class which doesn't work wink

But in any case, please grab the v4.2 sourcecode archive from the website (log in -> my account -> downloads v4.2, under 'extra' you'll see the sourcecode archive), and use the v4.2 version of the FieldLikePredicate class and port the changes over to that class (after giving it a new name of course so you can use it in your own code).

I think that would be enough to make it work.

Frans Bouma | Lead developer LLBLGen Pro
gfrankol
User
Posts: 10
Joined: 10-Apr-2017
# Posted on: 10-Jul-2017 08:14:17   

The class is copied from the linked task so I didn't include it in the task again. We will try to use the new source code. Thanks.