Menu

Commit [r10478]  Maximize  Restore  History

db api: the `ConnectionWrapper.__call__(query, params)` shortcut method now only does an `execute`.

So far, that method was guessing whether it should perform an `execute` or an `executemany`, based on `params`.

In r10474 that heuristic was changed to pick `executemany` `params` was `[]`, as otherwise some session related tests would break.

However that broke tests in other places, which expected the former behavior, so I added an explicit `executemany` shortcut method for performing an `executemany` operation on a temporary cursor.

cboos 2011-01-23

changed /trunk
changed /trunk/trac/db/api.py
changed /trunk/trac/db/util.py
changed /trunk/trac/env.py
changed /trunk/trac/test.py
changed /trunk/trac/tests/env.py
changed /trunk/trac/tests/perm.py
changed /trunk/trac/ticket/model.py
changed /trunk/trac/ticket/tests/model.py
changed /trunk/trac/versioncontrol/api.py
changed /trunk/trac/versioncontrol/cache.py
changed /trunk/trac/versioncontrol/tests/cache.py
changed /trunk/trac/web/session.py
changed /trunk/trac/wiki/tests/model.py
/trunk
Directory.
/trunk/trac/db/api.py Diff Switch to side-by-side view
Loading...
/trunk/trac/db/util.py Diff Switch to side-by-side view
Loading...
/trunk/trac/env.py Diff Switch to side-by-side view
Loading...
/trunk/trac/test.py Diff Switch to side-by-side view
Loading...
/trunk/trac/tests/env.py Diff Switch to side-by-side view
Loading...
/trunk/trac/tests/perm.py Diff Switch to side-by-side view
Loading...
/trunk/trac/ticket/model.py Diff Switch to side-by-side view
Loading...
/trunk/trac/ticket/tests/model.py Diff Switch to side-by-side view
Loading...
/trunk/trac/versioncontrol/api.py Diff Switch to side-by-side view
Loading...
/trunk/trac/versioncontrol/cache.py Diff Switch to side-by-side view
Loading...
/trunk/trac/versioncontrol/tests/cache.py Diff Switch to side-by-side view
Loading...
/trunk/trac/web/session.py Diff Switch to side-by-side view
Loading...
/trunk/trac/wiki/tests/model.py Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB