João Henrique Freitas writes:
 > Hello,
 > 
 > Following, I have a function my_dbi_get_value. I use dbi_result_get
 > and tranform the value received in a char *buf to return.
 > 
[...]
 > How I can use dbi_result_bind_* and not need to allocate a char *buf?
 > 

What is the advantage of using bind* instead of get* here?

As a side note, your code is close to an alternative interface which
we've discussed in the past. Instead of using strongly typed return
values, the alternative interface would allow to retrieve data as a
string or an integer, regardless of the storage type. For obvious
reasons, the results would not always be meaningful, but at least
you'd be able to retrieve a string representation of each and every
value. Your request indicates that such an interface would be a useful
addition. Would you be interested to integrate such an interface into
libdbi? I'd be happy to help.

regards,
Markus

-- 
Markus Hoenicka
[EMAIL PROTECTED]
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
libdbi-users mailing list
libdbi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libdbi-users

Reply via email to