mysql_stmt_param_metadata() always returns NULL

mysql_stmt_param_metadata() always returns NULL

am 01.10.2005 14:59:42 von Roland Volkmann

Hello,

after having prepared statements containing parameters (e.g. "insert
into test (id, info) values (?,?)" or "select x, y where a = ? and b =
?") using the function mysql_stmt_prepare(), I can ask for the number of
parameters using mysql_stmt_param_count() and get the correct count.

But if I try to get details of the parameters using the funktion
mysql_stmt_param_metadata(), I always get NULL for the result.

My Environment: WinXP Prof. SP2, MySQL 5.0.13-rc-nt-max with
InnoDB-Tables, MS Visual C++ 6

Isn't the function mysql_stmt_param_metadata() implemented right now? -
Detail description in the manual says "to be added" but also "This
function was added in MySQL 4.1.2."


With best regards

Roland.

--
Roland Volkmann
Stuttgart
Germany


--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs@m.gmane.org

Re: mysql_stmt_param_metadata() always returns NULL

am 01.10.2005 20:27:45 von Paul DuBois

At 14:59 +0200 10/1/05, Roland Volkmann wrote:
>Hello,
>
>after having prepared statements containing parameters (e.g. "insert
>into test (id, info) values (?,?)" or "select x, y where a = ? and b =
>?") using the function mysql_stmt_prepare(), I can ask for the number of
>parameters using mysql_stmt_param_count() and get the correct count.
>
>But if I try to get details of the parameters using the funktion
>mysql_stmt_param_metadata(), I always get NULL for the result.
>
>My Environment: WinXP Prof. SP2, MySQL 5.0.13-rc-nt-max with
>InnoDB-Tables, MS Visual C++ 6
>
>Isn't the function mysql_stmt_param_metadata() implemented right now? -
>Detail description in the manual says "to be added" but also "This
>function was added in MySQL 4.1.2."

There's no description because it doesn't do anything yet.

--
Paul DuBois, MySQL Documentation Team
Madison, Wisconsin, USA
MySQL AB, www.mysql.com

--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs@m.gmane.org