gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnumed-devel] amis.conf


From: Karsten Hilbert
Subject: [Gnumed-devel] amis.conf
Date: Tue, 22 Oct 2002 14:24:55 +0200
User-agent: Mutt/1.3.22.1i

Hilmar,

just a quick hint:

When writing query strings into a config file it is probably
better to use lists (even if they only ever contain one item)
since those can safely contain otherwise special characters
such as ";" or "#". Else you might run into the following
problem:

 query = select * from irc_channel where name like "#kern~"

You'd expect to retrieve a list of channels containing
#kernelnewbies, #kerneltraffic and such. However, since the
get() logic truncates at the # in "#kern~" thinking the
remainder is a comment you'd actually end up with a parse
error at best or an erroneously empty list of channels in the
worst case (note the reverse logic of how the technically
succeeding case is actually worse semantically).

In contrast

 query = $query$
 select * from irc_channel where name like "#kern~"
 $query$

suffers none of those pitfalls.

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346




reply via email to

[Prev in Thread] Current Thread [Next in Thread]