"Nate Blanchard" <[EMAIL PROTECTED]> wrote:
> According to the C API docs on mysql_get_metadata:
> " If a statement passed to mysql_prepare() is one that produces a result
> set, mysql_get_metadata() returns the result set metadata in the form of
> a pointer to a MYSQL_RES structure that can be used to process the meta
> information such as total number of fields and individual field
> information."
> 
> This would imply that using a SHOW TABLES LIKE '?' as my prepared query
> and then calling mysql_get_metadata() should work just fine.  My
> mysql_prepare() call works just fine, however when I make the call to
> mysql_get_metadata() it returns NULL.  I would expect it to return the
> meta data describing the resultset for SHOW TABLES just like the docs
> say. 
> 
> This is happening on the download version of 4.1.1, as well as the
> latest bitkeeper version of 4.1.2. 
> 
> Is this a known issue?  Are you not supposed to be able to use
> mysql_get_metadata on the SHOW queries?

mysql_get_metadata() will work with any other result set returning command (and with 
SHOW queries too). But currently it's not implemented.


-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com





-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to