From: Warren Young Date: May 15 2009 11:05pm Subject: Re: Question reg. connection character set List-Archive: http://lists.mysql.com/plusplus/8576 Message-Id: MIME-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On May 15, 2009, at 2:45 PM, Michael wrote: >> The only time it's expected not to is that there is one code path >> where you can make it quote a string without having a connection >> established >> > Is there any way I can control the code path/make sure this doesn't > happen? If not, it might be better to roll my own functionality. Just don't try quoting something in a query without having a connection already established. You have the MySQL++ source code, and it really isn't all that complex. Look at the various overloads of DBDriver::quote_string(), and work back from there.