Re: [firebird-support] with wrong sql i get no exception or firebird error
15.11.2019 12:45, 'Harald Wolf' firebir...@online.de [firebird-support] wrote: > Any suggestions? Dig into IBPP sources and find out the reason. Use debugger. -- WBR, SD. ++ Visit http://www.firebirdsql.org and click the Documentation item on the main (top) menu. Try FAQ and other links from the left-side menu there. Also search the knowledgebases at http://www.ibphoenix.com/resources/documents/ ++ Yahoo Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/firebird-support/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/firebird-support/join (Yahoo! ID required) <*> To change settings via email: firebird-support-dig...@yahoogroups.com firebird-support-fullfeatu...@yahoogroups.com <*> To unsubscribe from this group, send an email to: firebird-support-unsubscr...@yahoogroups.com <*> Your use of Yahoo Groups is subject to: https://info.yahoo.com/legal/us/yahoo/utos/terms/
Aw: RE: [firebird-support] with wrong sql i get no exception or firebird error
RE: [firebird-support] with wrong sql i get no exception or firebird error
< INSERT INTO LOG(WAS) VALUES ('blabla'); causes the error: Statement failed, SQLSTATE = 23000 validation error for column "LOG"."ID", value "*** null ***" if postet with the c++ code: IBPP::Transaction _tr = IBPP::TransactionFactory(db); IBPP::Statement st = IBPP::StatementFactory(db, _tr); _tr->Start(); st->Prepare("INSERT INTO LOG(WAS) VALUES (?)"); st->Set(1, "blabla"); st->Execute(); _tr->Commit(); i get no error...nothing! No Record is created. In other error cases i get an ibpp message with try catch IBPP::Exception& e somethin like. *** IBPP::LogicException *** Context: Statement::Set[char*] Message: The statement does not take parameters. but never the real firebird error. How can get this errors?>> Probably by using Class::SQLException http://www.ibpp.org/reference/exceptions Paul
Re: [firebird-support] with wrong sql i get no exception or firebird error
14.11.2019 15:06, 'Harald Wolf' firebir...@online.de [firebird-support] wrote: > i use the ibpp.org c++ lib. How can i get the firebird sql error in my c++ > code? This is a Firebird support list. Your question belongs to IBPP support. -- WBR, SD. ++ Visit http://www.firebirdsql.org and click the Documentation item on the main (top) menu. Try FAQ and other links from the left-side menu there. Also search the knowledgebases at http://www.ibphoenix.com/resources/documents/ ++ Yahoo Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/firebird-support/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/firebird-support/join (Yahoo! ID required) <*> To change settings via email: firebird-support-dig...@yahoogroups.com firebird-support-fullfeatu...@yahoogroups.com <*> To unsubscribe from this group, send an email to: firebird-support-unsubscr...@yahoogroups.com <*> Your use of Yahoo Groups is subject to: https://info.yahoo.com/legal/us/yahoo/utos/terms/