From: Warren Young Date: March 6 2009 4:06pm Subject: Re: How to pass SQLTypeAdapters to create a SQLQueryParms? List-Archive: http://lists.mysql.com/plusplus/8445 Message-Id: <49B14A04.6050008@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Warren Young wrote: > > The second parameter should...be "NOW()" Thinking more about this, I wonder if MySQL++ should provide such a thing? #define NOW() mysqlpp::DateTime() is dangerous in that it puts a 3-letter word at global scope, so there's a good chance of name collision. namespace mysqlpp { inline DateTime NOW() { return DateTime(); } } is inefficient, but it probably doesn't matter, and it fixes the global symbol problem.