Thread: mySQL + HPB_bot
View Single Post
Re: mySQL + HPB_bot
Old
  (#2)
Cheeseh
[rcbot]
 
Cheeseh's Avatar
 
Status: Offline
Posts: 361
Join Date: Dec 2003
Location: China
Default Re: mySQL + HPB_bot - 20-12-2006

you should ALWAYS try and catch for SQL Exceptions when using SQL. As the sql command will likely contain syntax errors and the only way to know there is a syntax error is to raise an exception. If the exception is not handled (handled = using try and catch), the program will crash.

see: http://tangentsoft.net/mysql++/doc/u.../tutorial.html
  
Reply With Quote