Checkout
glasser
committed
on 28 Nov 07
Make all sqlite-style error handling local to sqlite-util.c. The two
table-specific files now only use Subversion's error system, and only… Show more
Make all sqlite-style error handling local to sqlite-util.c.  The two

table-specific files now only use Subversion's error system, and only

call the sqlite_column_* APIs (which don't error) directly.

* subversion/libsvn_fs_util/sqlite-util.c

 (svn_fs__sqlite_stmt_error): Remove.

 (SQLITE_ERROR_CODE, SQLITE_ERR): Move and rename from

  sqlite-util.h.

 (step_with_expectation): Use a more specific error message (since

  it's a app-level error, not a db-level error).

 (svn_fs__sqlite_exec, svn_fs__sqlite_step,

  svn_fs__sqlite_bind_int64, svn_fs__sqlite_bind_text,

  svn_fs__sqlite_finalize, svn_fs__sqlite_reset, check_format,

  svn_fs__sqlite_open, svn_fs__sqlite_close): Adjust.

* subversion/libsvn_fs_util/sqlite-util.h

 (SVN_FS__SQLITE_ERROR_CODE, SVN_FS__SQLITE_ERR): Move and rename to

  sqlite-util.c.

 (svn_fs__sqlite_stmt_error): Remove.

Show less