Checkout
rhuijben
committed
on 23 May 12
Clean up some loose ends in the streamy property handling.

Rename some statements and apply a generic exception in the statement
validator … Show more
Clean up some loose ends in the streamy property handling.

Rename some statements and apply a generic exception in the statement

validator for tables like the property cache.

No functional changes.

* subversion/libsvn_wc/wc-queries.sql

 (STMT_CREATE_NODE_PROPS_CACHE): Rename to...

 (STMT_CREATE_TARGET_PROP_CACHE): ... as it is more related to target than

   node processing. Remove proof of concept note, as this was part of 1.7.

   Rename temporary table to target_prop_cache, to more closely match

   our other temporary table names.

   Define primary key to avoid a sort when reporting.

 (STMT_CACHE_TARGET_PROPS,

  STMT_CACHE_TARGET_PRISTINE_PROPS): Update users

 (STMT_SELECT_RELEVANT_PROPS_FROM_CACHE): Rename to ...

 (STMT_SELECT_ALL_PROP_CACHE):

  STMT_DROP_NODE_PROPS_CACHE): Update users.

* subversion/libsvn_wc/wc_db.c

 (cache_props_recursive): Update user.

* subversion/tests/libsvn_wc/wc-queries-test.c

 (schema_statements): Update reference.

 (slow_statements): Remove statement.

 (is_node_table): Add final line to allow extending with one line changes.

 (is_result_table): New function.

 (test_query_expectations): Allow exceptions on scan and index rules on

   (temporary) result tables.

Show less