I was working on my long pending changes to
apr_dbd_mysql when I found that I have no clue how to
return buckets from apr_dbd_get_entry.
Some problems:
1. Which bucket_alloc should I use and who gets it
(apr_dbd_get_row or apr_dbd_get_entry)?

2. There's some gains in having pool passed to
apr_dbd_get_entry (to defer the check for truncation
until the value is really needed). In general, it may
be better to hold a pool passed to apr_dbd_pselect,
instead of passing a new one to get_row/get_entry.

3. Alternatively, I can use buckets for everything
(including strings and simple types). In this case,
apr_dbd_p(v)select should get bucket_alloc instead.
apr_dbd_get_entry then may choose to return pointer to
bucket or pointer to bucket's content.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to