grantjenks / python-diskcache

Python disk-backed cache (Django-compatible). Faster than Redis and Memcached. Pure-Python.
http://www.grantjenks.com/docs/diskcache/
Other
2.34k stars 131 forks source link

Error during reset #316

Open csm10495 opened 5 months ago

csm10495 commented 5 months ago

I got this error when setting up my diskcache:

  File "C:\Users\csm10495\AppData\Local\Jenkins\.jenkins\workspace\Update Lump Status\infra\Lib\site-packages\diskcache\core.py", line 2441, in reset
    sql('PRAGMA %s = %s' % (pragma, value)).fetchall()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sqlite3.OperationalError: near "-": syntax error

It has these values

      pragma = 'auto_vacuum'
      value = 'least-recently-stored'

I'm guessing we're missing some escaping for the value with -'s