RE: [Exim] Syntax for a MySQL select true/false statement

Pàgina inicial
Delete this message
Reply to this message
Autor: Hr. Daniel Mikkelsen
Data:  
A: Eli
CC: exim-users
Assumpte: RE: [Exim] Syntax for a MySQL select true/false statement
On Wed, 18 Jun 2003, Eli wrote:

> I was considering something of that sort, maybe using IFNULL(), however I
> don't know how Exim determines a true/false from a SELECT statement? From
> what I read, if it returns ANYTHING, it thinks it passed the condition, so I
> guess *maybe* I could do something like:


Don't worry, it just works. SQL will return 0 for false and 1 for true. The
condition will fail on 0 and succeed on 1.

-- Daniel