9 Feb
2009
9 Feb
'09
6:16 p.m.
On 9-Feb-09, at 12:40 AM, David Metzler wrote:
XML-enabled DB Binding: Write sql binding syntax that looks like SELECT * from table where name={xpathtofield}. The XPATH entry can also be an index to a field array. I find this more intuitive than the %1, %2 ,etc syntax that's used in drupal, cause you can reference the same bind variable more than once in an SQL statement.
I believe this is solved in DB:TNG, now in Drupal 7. Calls to db_query() now have array keys, which can be used instead of the traditional ordered placeholders. http://api.drupal.org/api/function/db_query/7 --Andrew