Re: [libdbi-users] Use dynamic dbi_result_bind_* functions

2008-04-16 Thread João Henrique Freitas
> > 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 int

[libdbi-users] Use dynamic dbi_result_bind_* functions

2008-04-16 Thread Markus Hoenicka
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

[libdbi-users] libdbi and bind functions, testing

2008-04-16 Thread Markus Hoenicka
Hi, João Henrique Freitas writes: > Hello, > > I need to work with some bind functions in libdbi. And I will test all > and put on dbi_test.c. This is greatly appreciated, as the test program so far does not cover the bind* functions. > while (dbi_result_next_row(result)) { >