Hi Mariano, Herbert

> > wouldn't the cheapest way be to just build a special case into
> > SqueakDBX error handling that could be activated via some option?
> 
> This, this can be perfectly done (I think). I also have thought in this
> solution. I will review the code and commit a version so that you can test
> it.

Please don't handle this case specially in SqueakDBX as it changes the 
behaviour of the whole backend and this should only be done by the application 
programmer who knows what he's doing. There's an option (ODBX_OPT_MODE) which 
the application programmer can use to set the MySQL mode. We could change this 
slightly so when setting it to an empty string, the "sql_mode" isn't set at 
all.

> The thing is that I don't know what happens if you open a connection with
> this error. What happens with all of the queries you do then ? will them
> work?

It won't work as the odbx_bind() function has to clean up the connection and 
close it.


Norbert
-- 
OpenPGP public key
http://www.linuxnetworks.de/norbert.pubkey.asc

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
libopendbx-devel mailing list
libopendbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libopendbx-devel
http://www.linuxnetworks.de/doc/index.php/OpenDBX

Reply via email to