From: Warren Young Date: June 30 2009 3:54pm Subject: Re: ssqls internals question.... List-Archive: http://lists.mysql.com/plusplus/8650 Message-Id: <4A4A352D.4040902@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Dan Cook (dancook) wrote: > template > vector getRows(const T& object, connection) > { > Query q = conn->query(); > q << "select * from object.table() << > " where " << object.equal_list(" and ", sql_use_compare); > cerr< to get it to do what you want. > test t; > t.fkey = 1; For that to be a sufficient hint to MySQL++ that you're talking about the second field, C++ would have to be a different language. C++ has no "undefined" value, as does, say, JavaScript. Thus, we can't just check which field got a value. SSQLS v2 with accessors might give us what you need here: test t; t.setFkey(1); with setFkey() internally doing something like: this->fkey_ = 1; this->fkey_set_ = 1; Then we have a separate flag we can test to intuit which fields are set.