From: Warren Young Date: October 8 2004 7:59pm Subject: Re: compiling mysql++ examples (fwd) List-Archive: http://lists.mysql.com/plusplus/3560 Message-Id: <4166F19F.4050400@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Don Thompson wrote: > You're right, the junk was test code with const qualifier, but it > should be removed for my example, > ie query.insert(*this). Using this change, I get the complaint about > const: I know we're getting > into c++ issues here. Wait just a minute....it seems that you're trying to insert an arbitrary C++ class into the database. That cannot work. This is not Java and, and MySQL is not an OODB! You need to use the SQLSS mechanism; in order to copy the data from your C++ class to the SQLSS structure, you will create a non-const object on the stack, so constness won't be a problem. See the custom* examples.