Re: [Cppcms-users] Bizarre prepared statement problem
Brought to you by:
artyom-beilis
From: <ele...@ex...> - 2012-05-21 04:52:44
|
UPDATE: Something even stranger. If I replace all the hardcoded times and run it through a prepared statement This works(always returns 2 rows) r = sql << os.str() << "2012-05-17 23:59:59" << "2012-05-17 23:59:59" << aircraft_id; but this doesnt(returns sometimes 1, sometimes 2 rows): string ts = "2012-05-17 23:59:59"; r = sql << os.str() << ts << ts << aircraft_id; What the hell is going on here? |