From: Date: April 10 2006 4:54pm Subject: Re: getting table meta data (primary key, in this case) List-Archive: http://lists.mysql.com/internals/33507 Message-Id: <20060410145438.GA23342@serg.mylan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hi! First: please don't forget to cc: your questions to the list, so that others could benefit from the knowlegde share too. Also you can get faster replies, because more developers will see your question and will have their chance to answer. > Also, while i'm strolling around MySQL in gdb, are there any > toString-like methods to give a string representation of an > expression complile tree ala :? > p sel->where->as_string() Item::print() Though it uses String class, so I'm not sure you can call it from gdb the way you want. You can try the following workaround: String gdb_print_buf; char *Item::gdb_print() { print(&gdb_print_buf); return gdb_print_buf.c_ptr(); } Regards, Sergei -- __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Sergei Golubchik / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Senior Software Developer /_/ /_/\_, /___/\___\_\___/ Kerpen, Germany <___/ www.mysql.com