From: Joel Fielder Date: January 13 2010 3:16pm Subject: Re: Query::execute crashes without a connected driver List-Archive: http://lists.mysql.com/plusplus/8867 Message-Id: <4B4DE3D5.8040609@switchplane.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Warren Young wrote: > it probably affects much more than just execute(); exec(), store*(), > use()... Maybe even high-level methods like insertfrom(). > Have sorted these out on my local copy. But, what to do about things like affected_rows and insert_id which return 0 if not connected but could be considered exceptional? Also Query::escape_string(char*...) attempts the connected path when not connected so presumably this needs a check too? Is there a bigger issue of "programmer's responsibility" here?