| List: | MySQL++ | « Previous MessageNext Message » | |
| From: | Warren Young | Date: | March 6 2009 4:06pm |
| Subject: | Re: How to pass SQLTypeAdapters to create a SQLQueryParms? | ||
| View as plain text | |||
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.
| Thread | ||
|---|---|---|
| • How to pass SQLTypeAdapters to create a SQLQueryParms? | Alex Luya | 6 Mar |
| • RE: How to pass SQLTypeAdapters to create a SQLQueryParms? | Jim Wallace | 6 Mar |
| • Re: How to pass SQLTypeAdapters to create a SQLQueryParms? | Warren Young | 6 Mar |
| • Re: How to pass SQLTypeAdapters to create a SQLQueryParms? | Warren Young | 6 Mar |
| • Re: How to pass SQLTypeAdapters to create a SQLQueryParms? | Rick Gutleber | 6 Mar |
| • Re: How to pass SQLTypeAdapters to create a SQLQueryParms? | Warren Young | 6 Mar |
