Since I'm fiddling with the memcache backend post-unicode, I decided
to run tests against all the backends while I was at it.

(Apparently the cache tests aren't run against memcache very often,
because test_not_existent has been there since 3661 and never would
have worked against memcache.

More evidence of need for buildbot or similar, but I digress.)

When I tried to run against the DB backend using sqlite, all tests
failed, similar to this:

ERROR: test_unicode (regressiontests.cache.tests.Cache)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jdunck/work/djtrunk/tests/regressiontests/cache/tests.py",
line 80, in test_unicode
    cache.set(key, value)
  File "/home/jdunck/work/djtrunk/django/core/cache/backends/db.py",
line 44, in set
    cursor.execute("SELECT COUNT(*) FROM %s" % self._table)
  File "/home/jdunck/work/djtrunk/django/db/backends/sqlite3/base.py",
line 94, in execute
    return Database.Cursor.execute(self, query, params)
OperationalError: no such table: my_cache_table


====================


However, the table does indeed exist:
[EMAIL PROTECTED]:~/work/djtrunk$
DJANGO_SETTINGS_MODULE=ttrunk.settings python ~/django-admin.py
dbshell
SQLite version 3.3.13
Enter ".help" for instructions
sqlite> .schema my_cache_table
CREATE TABLE "my_cache_table" (
    "cache_key" varchar(255) NOT NULL UNIQUE PRIMARY KEY,
    "value" text NOT NULL,
    "expires" datetime NOT NULL
);
CREATE INDEX my_cache_table_expires ON "my_cache_table" ("expires");
sqlite>


Am I doing something stupid, or is something odd going on here?

I'll report any further issues I come across.
  -Jeremy

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to