On Nov 29, 2007 5:29 PM, <kfogel@tigris.org> wrote:
> Modified: branches/issue-2897/subversion/libsvn_fs_util/sqlite-util.c
> URL: http://svn.collab.net/viewvc/svn/branches/issue-2897/subversion/libsvn_fs_util/sqlite-util.c?pathrev=28158&r1=28157&r2=28158
> ==============================================================================
> --- branches/issue-2897/subversion/libsvn_fs_util/sqlite-util.c (original)
> +++ branches/issue-2897/subversion/libsvn_fs_util/sqlite-util.c Thu Nov 29 17:29:04 2007
> @@ -174,15 +174,18 @@
> /* Time (in milliseconds) to wait for sqlite locks before giving up. */
> #define BUSY_TIMEOUT 10000
>
> +#define MERGINFO_TABLE_SCHEMA \
> + "CREATE TABLE mergeinfo (revision INTEGER NOT NULL, mergedfrom TEXT " \
> + "NOT NULL, mergedto TEXT NOT NULL, mergedrevstart INTEGER NOT NULL, " \
> + "mergedrevend INTEGER NOT NULL, inheritable INTEGER NOT NULL);"
> +
> static const char *schema_create_sql[] = {
> NULL, /* An empty database is format 0 */
>
> /* USER_VERSION 1 */
> "PRAGMA auto_vacuum = 1;"
> APR_EOL_STR
> - "CREATE TABLE mergeinfo (revision INTEGER NOT NULL, mergedfrom TEXT NOT "
> - "NULL, mergedto TEXT NOT NULL, mergedrevstart INTEGER NOT NULL, "
> - "mergedrevend INTEGER NOT NULL, inheritable INTEGER NOT NULL);"
> + MERGINFO_TABLE_SCHEMA
> APR_EOL_STR
> "CREATE INDEX mi_mergedfrom_idx ON mergeinfo (mergedfrom);"
> APR_EOL_STR
> @@ -190,9 +193,7 @@
> APR_EOL_STR
> "CREATE INDEX mi_revision_idx ON mergeinfo (revision);"
> APR_EOL_STR
> - "CREATE TABLE mergeinfo_changed (revision INTEGER NOT NULL, mergedfrom TEXT "
> - "NOT NULL, mergedto TEXT NOT NULL, mergedrevstart INTEGER NOT NULL, "
> - "mergedrevend INTEGER NOT NULL, inheritable INTEGER NOT NULL);"
> + MERGINFO_TABLE_SCHEMA
> APR_EOL_STR
> "CREATE UNIQUE INDEX "
> "mi_c_merge_source_target_revstart_end_commit_rev_idx "
First, that probably wants to be MERGEINFO_TABLE_SCHEMA with an E, right?
Secondly, this will try to make the same table twice. I guess you
want to just put the part within the parentheses into the comment.
--dave
--
David Glasser | glasser_at_davidglasser.net | http://www.davidglasser.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Nov 30 04:18:51 2007