Not all of the adapters allow placeholders. Which one are you using? On Friday, September 14, 2012 11:59:20 PM UTC-4, Matt wrote: > > Hi there, > > Another bug in 2.0.x: > > > def test_execute(): > rows = db.executesql('select * from y where id = %(id)s', placeholders = > dict(id = 1), as_dict = True) > return str(rows[0]) > > raises: > > File "/Projects/www/gluon/dal.py", line 7257, in executesql > adapter.execute(query, placeholders) > TypeError: execute() takes exactly 2 arguments (3 given) > > Matt >
--