Ian Collins writes: > So how do you use the HANDLER command in a C program? > I perused the code for 3.2x for this, and ended up installing mysql-4.0.0. > I found what I believe to be the code for HANDLER in > libmysqld/sql_handler.cc > in the functions, > mysql_ha_open, mysql_ha_close, mysql_ha_read > > Am I correct (or, as I surmise, off on a tangent)? > > Are there any examples anywhere of how to use these? > > Many regards, > Ian Collins. >
Hi! You do not use HANDLER command in C program. You run a query with a HANDLER command, like : if (mysql_query(mysql,"HANDLER OPEN ...") { if (mysql_query(mysql,"HANDLER READ ..") { mysql_store_result ... etc etc etc } } -- Regards, __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Mr. Sinisa Milivojevic <[EMAIL PROTECTED]> / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Fulltime Developer /_/ /_/\_, /___/\___\_\___/ Larnaca, Cyprus <___/ www.mysql.com --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php