very good analysis. The constructor should either perform the same check,
or call setMultiThreaded() so that the checks are applied.

On 29 August 2017 at 17:40, <[email protected]> wrote:

> Found it. :)
>
> In DbSettings.java, there is a hash map entry MULTI_THREADED which also
> gets printed in MetaTable.java like this:
>
> HashMap<String, String> s = database.getSettings().getSettings();
> for (String k : s.keySet()) {
>     settingNames.add(k);
> }
> Collections.sort(settingNames);
> for (String k : settingNames) {
>     add(rows, k, s.get(k)); <-------------- HERE IT IS
> }
>
> This looks like a bug. A safe bug. :) One which only confuses people and
> not machines. :) But what do do about it? Since I don't know the role of
> the DbSettings class in the architecture of H2, I am not competent to make
> suggestions... I leave that to others.
>
> --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/h2-database.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to