Re: (Solved) Re: Using full SQL LIKE matching in database operations

2008-09-02 Thread Djn
Right, I've managed to confuse myself at some point earlier and it shows. What I have wanted to use isn't "LIKE" but "SIMILAR TO". The actual, working, code looks similar to wordGenome.objects.extra(where=["word similar to %s"], params=[subword] ) Apologies for the noise. --~--~-~--~

(Solved) Re: Using full SQL LIKE matching in database operations

2008-09-02 Thread Djn
On Sep 1, 7:13 pm, Djn <[EMAIL PROTECTED]> wrote: > I'm in the process of moving an existing app over to python and > Django, and ran into one snag I haven't been able to find any comments > on. > > Basically, I have objects that describe themselves as an SQL-style > pattern (they represent small

Using full SQL LIKE matching in database operations

2008-09-01 Thread Djn
I'm in the process of moving an existing app over to python and Django, and ran into one snag I haven't been able to find any comments on. Basically, I have objects that describe themselves as an SQL-style pattern (they represent small chunks of possible patterns from DNA, so things like "GTGCGG_