All things Jythonic 13.7.2004

July 2004
MoTuWeThFrSaSu
    1 2 3 4
5 6 7 8 91011
12131415161718
19202122232425
262728293031 
Jun
2004
 Aug
2004

A blog tracking jython developments

XML-Image Syndication

XML-Image Comment Feed

Letterimage Contact me

2004-07-13

SQLObject + MySQL CachedValues Rant

We interrupt your regularly scheduled Jython coverage to bring you this therapeutic rant:

[RANT ON]

OK, so if you are using SQLObject_ with MySQL 4.X and you notice that queries executed after table updates do not reflect the changes .... TURN OFF _CACHE_VALUES for your database classes (you do this by defining the following class attribute:

_cache_values = False 

Since MySQL does autocommit by default your database changes are invisible to queries if you don't do this ... That only cost me several hours.  Ok I feel better now.

[RANT OFF]

And now back to your regularly scheduled Jython coverage.

posted at 01:52:00    #
Creative Commons License
This work is licensed under a Creative Commons License.