[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1091262 - /subversion/trunk/subversion/libsvn_wc/wc_db.c

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Wed, 13 Apr 2011 08:17:47 +0100

Greg Stein <gstein_at_gmail.com> writes:

> I understand, and would suggest an alternative if I had one right now. I
> feel the same as you about "not that rock, another".

I have an alternative, but I'm not going to claim it's better.

Use sqlite3_create_function to define a function foo that takes two
parameters, a string and a blob. Implemenent foo to handle the blob as
an apr_hash_t and lookup the string in the hash. Then the static
statement looks like:

   "... AND foo(changelist, ?3) ..."

and the code only needs to bind a single blob parameter.

-- 
Philip
Received on 2011-04-13 09:18:27 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.