Re: [Cppcms-users] Bizarre prepared statement problem
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-05-21 12:48:40
|
> >Yeah I tried cloning the string via a copy constructor: > >sql << os.str() << string(ts) << string(ts); > >but it made no difference. I believe string always deep copies. > >In the end, instead of passing it a string, I used strptime() to convert >the string to a std::tm struct and it's working fine. Very weird. > Few points: 1. What DB (mysql/sqlite/posgressql/mssql) ? 2. Can you enable logging (at DB level to see what exactly passed)? 3. What is the column type? 4. Does it work from direct SQL access? 5. How do you count rows? Generally is seems little bit strange. Artyom |