From: Paul R. <pr...@ib...> - 2015-07-28 17:12:59
|
I managed to accidentally create this pseudo config file today: <database mydb> enabled false blah blah </database> <database mydb> enabled true blah blah </database> and was very surprised to find no trace output for mydb. After a lot of head scratching I finally worked it out. It looks as if the parser stops on the first match of mydb, rather than continuing to the end. So the question is - is this by design or is it a bug ? Of course, there is another related question - what is the correct behaviour? I know a lot of config file parsers are written to parse to the end and whichever values are set last are the values used. For example postfix is specifically designed to allow this: myparam = x < snip lots of config > myparam = y and the final value used for myparam will be y. Paul -- Paul Reeves http://www.ibphoenix.com Supporting users of Firebird |