Re: error with custom sql

2008-06-03 Thread Karen Tracey
On Tue, Jun 3, 2008 at 10:32 AM, msoulier <[EMAIL PROTECTED]> wrote: > > On May 15, 2:23 pm, msoulier <[EMAIL PROTECTED]> wrote: > > So, custom SQL in Django can't include a LIKE statement with a % > > unless it's escaped? I'm > > looking in the docs and I can't seem to find anything that mentions

Re: error with custom sql

2008-06-03 Thread msoulier
On May 15, 2:23 pm, msoulier <[EMAIL PROTECTED]> wrote: > So, custom SQL in Django can't include a LIKE statement with a % > unless it's escaped? I'm > looking in the docs and I can't seem to find anything that mentions > that. In fact, I've replaced my % with %% and it's not matching anything no

Re: error with custom sql

2008-05-15 Thread msoulier
On May 15, 2:13 pm, msoulier <[EMAIL PROTECTED]> wrote: > Actually, it fails in the Django shell, and there only, regardless of > the db backend. Oh, scratch that. I just got it to fail consistently in a simple script that runs only that code. So, custom SQL in Django can't include a LIKE statem

Re: error with custom sql

2008-05-15 Thread msoulier
On May 14, 10:27 pm, msoulier <[EMAIL PROTECTED]> wrote: > This seems to work in production with postgreSQL, but on my laptop > with sqlite I'm seeing an issue. Actually, it fails in the Django shell, and there only, regardless of the db backend. Can anyone think of why? Mike --~--~-~--

error with custom sql

2008-05-14 Thread msoulier
Hi, I've subclassed the manager in a model to add a custom method. class ClientManager(models.Manager): """This is a custom manager for the Client model, implementing some custom methods for bulk editing of clients in the database in a more efficient manner.""" def disconnectAll(