RE: [Exim] mysql Lookup problem?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Philip Hazel
Dátum:  
Címzett: Johansson Jan
CC: 'exim-users@exim.org'
Tárgy: RE: [Exim] mysql Lookup problem?
On Thu, 23 Aug 2001, Johansson Jan wrote:

> No, that was the original posters version, i added the missing " in my
> tests/my reply.


So why it didn't work is a mystery. The actual code line which Exim is
using for checking the value of "condition" is

rc = ss[0] != 0 && strcmp(ss, "0") != 0 && strcmpic(ss, "no") != 0 &&
strcmpic(ss, "false") != 0;

and there is at least one case in my test suite where 0/1 is used
instead of no/yes.

> Oh, no, i didnt mean "SQL specific". And i KNOW the info is in the book, i
> have found it. I was more inclined towards stuff like, p 103, it explains
> how the condition works, but i cant really find a referens to "what other
> operators are availabl".


This was my BIG problem in writing this book. Do you define all the
details first, or do you give real discussion first, and leave the
details till later? The reference manual does the former - it tells you
all about expansion strings before describing the drivers, so in theory
you know about all the operators early on. The book attempts the other
approach, because we (me and my editor) didn't just want to reproduce
another reference manual, and the idea was to show real examples as
early as possible. The problem is that you then either keep having to
say "see chapter X for more details", or partially explaining things,
with the result that explanations get spread out all over the place.

People obviously like the book (they have said so), but I am not
entirely happy with the result. But then, I've always quite liked
reading reference manuals... :-)

I will of course try to improve what I can if there's another edition.

> And, yes i do like the book, it has made my life easier, and is getting
> rather thumbed already.


Thanks.

Philip

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.