When upgrading a working copy to format 32, ensure that we always have the
corresponding rows in the SETTINGS table.

Before this change, we treated an absent row as having the "old" settings
when making a query.  Let's instead change the upgrade routine so that the
row is always present — so that both newly created and upgraded working
copies would have the same entries in the SETTINGS table.

* subversion/libsvn_wc/wc-metadata.sql
  (STMT_UPGRADE_TO_32): Populate the SETTINGS table.

* subversion/libsvn_wc/wc_db_wcroot.c
  (read_settings): Expect the query to return a single row.


git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1906768 13f79535-47bb-0310-9956-ffa450edef68
2 files changed