Multiple connections; different query results. with mysql innodb engine
|Reported by:||Owned by:||nobody|
|Severity:||Keywords:||innodb mysql cached|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
This is always reproducable with innodb, but works as expected w/ postgres or myiasm
With a simple model and caching disabled.
create a instance in the admin interface and save
in a manage.py shell load the instance ( .get() or .all())
change the instance in the admin and save
reload the instance in the shell (.get() or .all())
the shell instance is the old version that seems to be cached !!
Same problem between 2 shells or if you change in a shell and refresh the admin page.
The save is happening and all looks well if you inspect tables with mysqls client after save, so problem seems to be on retrieval side.
Thanks in advance,
django v 1.0.2
MySQLdb v 1.2.2
mysql Ver 14.14 Distrib 5.1.31, for sun-solaris2.10 (sparc)
Python 2.5.4 (r254:67916, Jan 16 2009, 17:22:03)
IPython 0.9.1 -- An enhanced Interactive Python.