Overview
Features
Download
Documentation
Community
Add-Ons & Services

Querying datatime column in Poco

Please post support and help requests here.

Querying datatime column in Poco

Postby shrikar » 05 Sep 2012, 08:33

Hi All,
I am currently having some problem getting the datetime column from the database..

try {
std::string q = "select created_at from users";
Statement stmt(*_pSession);
stmt << q;
stmt.execute();
RecordSet rs(stmt);
} catch(StatementException ex){
std::cout << ex.displayText() << std::endl;
return 0;
}

Here the created_at is of datetime type...
Stacktrace :
(gdb) bt
#0 0x00007fff8e632212 in __pthread_kill ()
#1 0x00007fff84edcb34 in pthread_kill ()
#2 0x00007fff84f20dfa in abort ()
#3 0x00007fff89d94f87 in abort_message ()
#4 0x00007fff89d92936 in default_terminate ()
#5 0x00007fff8b013907 in _objc_terminate ()
#6 0x00007fff89d92965 in safe_handler_caller ()
#7 0x00007fff89d929c0 in std::terminate ()
#8 0x00007fff89d93b27 in __cxa_throw ()
#9 0x000000010082eb80 in Poco::Data::StatementImpl::makeExtractors ()
#10 0x000000010082ed9d in Poco::Data::StatementImpl::compile ()
#11 0x000000010082ee34 in Poco::Data::StatementImpl::executeWithoutLimit ()
#12 0x000000010082f07f in Poco::Data::StatementImpl::execute ()
#13 0x000000010000194c in main () at query.cc:66

Please let me know if I am missing something...
shrikar
 
Posts: 1
Joined: 05 Sep 2012, 08:29

Re: Querying datatime column in Poco

Postby alex » 05 Sep 2012, 17:13

What version of the code are you using?
alex
 
Posts: 1155
Joined: 11 Jul 2006, 16:27
Location: United_States


Return to Support

Who is online

Users browsing this forum: No registered users and 3 guests

cron