Menu

#31 Nini does not handle non-valued keys on INI files

v1.1.0
open-invalid
INI (26)
5
2006-07-08
2006-07-07
Cyblix
No

I've seen INI files with non-valued keys (we use them
at work) and even the MySQL style page you like to in
the manual shows an example of this,
http://dev.mysql.com/doc/refman/5.0/en/mysql-cluster-
config-example.html

[mysqld]
ndbcluster
ndb-connectstring=ndb_mgmd.mysql.com

The ndbcluster line does not have a value. Nini will
barf when it encounters this situation. I can
workaround this by using a '='

[mysqld]
ndbcluster=
ndb-connectstring=ndb_mgmd.mysql.com

Likewise, there is no way to create a key without a
value in XML. I haven't tried in other formats.

Discussion

  • Brent R. Matzelle

    Logged In: YES
    user_id=163900

    This MySQL support was added in Nini 1.1. See the FAQ:

    http://nini.sourceforge.net/faq.php#faq5

     
  • Brent R. Matzelle

    • assigned_to: nobody --> bmatzelle
    • status: open --> open-invalid
     

Log in to post a comment.