Hi,

Von: Jean-Christophe Deschamps

> > > This would means that if ever an SQL statement encounters divide by 
> > > zero, the application will crash with no way handle the situation 
> > > gracefully, nor to locate the source of the problem.
> >
> >Seriously, what are you talking about?  Why is there "no way to handle"
> >the error, gracefully otherwise?  How do you know there would be no way 
> >to "locate the source of the problem"?
> >
> >I imagine an error SQLITE_EMATH returned by sqlite4_step.  With some 
> >care, perhaps the expression returning zero could be mentioned in the 
> >error text.  I can't imagine how that would present a problem.

> Yes but raising an exception has been mentionned at some point in the 
> discussion. I was just saying that doing so is pretty different from 
> returning an error at function-level. 

An Exception in the SQL sense effectively results in an errorcode returned by 
an sqlite function.

SQLite is implemented in C, there are no exceptions on the language level it 
could raise.

Best regards

Markus Schaber

CODESYS(r) a trademark of 3S-Smart Software Solutions GmbH

Inspiring Automation Solutions

3S-Smart Software Solutions GmbH
Dipl.-Inf. Markus Schaber | Product Development Core Technology
Memminger Str. 151 | 87439 Kempten | Germany
Tel. +49-831-54031-979 | Fax +49-831-54031-50

E-Mail: m.scha...@codesys.com | Web: http://www.codesys.com | CODESYS store: 
http://store.codesys.com
CODESYS forum: http://forum.codesys.com

Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade 
register: Kempten HRB 6186 | Tax ID No.: DE 167014915

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorised copying, disclosure
or distribution of the material in this e-mail is strictly forbidden.

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to