mysql_stmt_param_metadata() always returns NULL

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 [at] m.gmane.org
Roland Volkmann [ Sa, 01 Oktober 2005 14:59 ] [ ID #992892 ]

Re: mysql_stmt_param_metadata() always returns NULL

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 [at] m.gmane.org
Paul DuBois [ Sa, 01 Oktober 2005 20:27 ] [ ID #992893 ]
Datenbanken » gmane.comp.db.mysql.bugs » mysql_stmt_param_metadata() always returns NULL

Vorheriges Thema: lost connection with SELECT queries and DELETE in SP (WITH QUERYCACHE)
Nächstes Thema: Blocking read as in Bug 5449