Re: [Cppcms-users] cppdb: getting the full query
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2010-12-24 10:33:03
|
Currently this is not supported as: 1. In many cases the query just does not exists or invalid. 2. CppDB does not rewrite the query in most of cases as it uses prepared statements, so basically the query you give is the query that is passed That was different in case of dbixx which did rewrite most of queries. Artyom ----- Original Message ---- > From: augustin <aug...@ov...> > To: cpp...@li... > Sent: Fri, December 24, 2010 10:23:36 AM > Subject: [Cppcms-users] cppdb: getting the full query > > Hello, > > Like discussed previously for dbixx, cppdb lacks the possibility to get the > full query (for either logging or debugging purposes). > > At least when an error is thrown, we should be able to get the full query that > > caused the error. The driver error is not explicit enough. > > cppdb_error should implement: > std::string cppdb::cppdb_error::get_query() > which would return the full SQL. > > Probably, a similar function should exist in cppdb::session (to get the full > query even when no error is thrown. > > In many cases, it would make development easier. > > Thanks, > > > Augustin. > -- > Friends: http://www.reuniting.info/ http://activistsolutions.org/ > My projects: > http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ > > http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ > http://openteacher.info/ http://minguo.info/ > http://www.wechange.org/ http://searching911.info/ > > > > > > > > > > > > > . > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |