~free.ekanayaka/storm/any-expr

« back to all changes in this revision

Viewing changes to tests/store/sqlite.py

Merge variable-referenceset-leak [r=niemeyer,jkakar]

Change the way MutableValueVariable hooks up to the store event system, by
overriding get and set. This works around a leak discovered when using
PickleVariable in a ReferenceSet.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
                           "(id INTEGER PRIMARY KEY,"
51
51
                           " foo_id INTEGER, title VARCHAR)")
52
52
        connection.execute("CREATE TABLE bin "
53
 
                           "(id INTEGER PRIMARY KEY, bin BLOB)")
 
53
                           "(id INTEGER PRIMARY KEY, bin BLOB, foo_id INTEGER)")
54
54
        connection.execute("CREATE TABLE link "
55
55
                           "(foo_id INTEGER, bar_id INTEGER)")
56
56
        # We have to use TEXT here, since NUMERIC would cause SQLite