On Mon, Sep 6, 2010 at 11:35 AM, Bert Huijben <[email protected]> wrote:

>
> > +      SVN_ERR(svn_sqlite__get_statement(&stmt, pdh->wcroot->sdb,
> > +                                        STMT_INSERT_NODE_DATA));
> > +
> > +      SVN_ERR(svn_sqlite__bindf(stmt, "isi", pdh->wcroot->wc_id, base,
> > +                                (apr_int64_t) 0 /* BASE */
> > +                                ));
> > +      SVN_ERR(svn_sqlite__bind_text(stmt, 4, ""));
> > +      SVN_ERR(svn_sqlite__bind_token(stmt, 5, presence_map,
> > +                                     svn_wc__db_status_normal));
> > +      SVN_ERR(svn_sqlite__bind_token(stmt, 6, kind_map,
> > +                                     svn_wc__db_kind_subdir));
>
> Why don't you use _bindf("isistt", ...) here?
> That would include all the other fields. (Other option: separate binds of
> all values)
>
>
Right. We have many situations where we could/should bind all values through
..._bindf(). This was merely duplicating what was exactly above it. I prefer
the ..._bindf() version myself, but didn't want to rewrite existing code to
use it. Based on your feedback, I think I just might do that anyway, when in
the same function.


Bye,

Erik.

Reply via email to