FieldBetweenPredicate additional functionality

Posts   
 
    
Posts: 1268
Joined: 10-Mar-2006
# Posted on: 06-Sep-2006 02:54:38   

In the docs, I see that FieldBetweenPredicate supports:

Field between value1 and value2 Field between value1 and anotherField Field between somefield and value2

However, what I am attempting is:

value between somefield and anotherfield

Is this possible - and if not, perhaps can get that on the todo list?

Of course we can work around this by not using the between clause for now...

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 06-Sep-2006 07:35:07   

Please refer to the following thread: http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=6462

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 06-Sep-2006 09:35:37   

A value compared to fieldS isn't a field...predicate anymore wink .

Use 2 comparevalue predicates.

Frans Bouma | Lead developer LLBLGen Pro
Posts: 1268
Joined: 10-Mar-2006
# Posted on: 06-Sep-2006 14:52:07   

A value compared to fieldS isn't a field...predicate anymore.

Technicalities, technicalities... simple_smile

I am always looking at it from - here is some sql I want to write - so, I try to get llblgen to be able to generate it.

Would be cool to add this functionality....

Thanks!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 06-Sep-2006 20:49:07   

WayneBrantley wrote:

A value compared to fieldS isn't a field...predicate anymore.

Technicalities, technicalities... simple_smile

I am always looking at it from - here is some sql I want to write - so, I try to get llblgen to be able to generate it.

Understandable, but it also IMHO makes understanding the framework more difficult, as it's not a 1:1 projection of SQL wink

Frans Bouma | Lead developer LLBLGen Pro