{"action":"closed","issue":{"url":"https://api.github.com/repos/mitsuhiko/flask-sqlalchemy/issues/345","labels_url":"https://api.github.com/repos/mitsuhiko/flask-sqlalchemy/issues/345/labels{/name}","comments_url":"https://api.github.com/repos/mitsuhiko/flask-sqlalchemy/issues/345/comments","events_url":"https://api.github.com/repos/mitsuhiko/flask-sqlalchemy/issues/345/events","html_url":"https://github.com/mitsuhiko/flask-sqlalchemy/issues/345","id":113912614,"number":345,"title":"Binds parameter not respected","user":{"login":"mattupstate","id":166176,"avatar_url":"https://avatars.githubusercontent.com/u/166176?v=3","gravatar_id":"","url":"https://api.github.com/users/mattupstate","html_url":"https://github.com/mattupstate","followers_url":"https://api.github.com/users/mattupstate/followers","following_url":"https://api.github.com/users/mattupstate/following{/other_user}","gists_url":"https://api.github.com/users/mattupstate/gists{/gist_id}","starred_url":"https://api.github.com/users/mattupstate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattupstate/subscriptions","organizations_url":"https://api.github.com/users/mattupstate/orgs","repos_url":"https://api.github.com/users/mattupstate/repos","events_url":"https://api.github.com/users/mattupstate/events{/privacy}","received_events_url":"https://api.github.com/users/mattupstate/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-28T20:15:03Z","updated_at":"2015-12-04T15:49:03Z","closed_at":"2015-12-04T15:49:03Z","body":"Unfortunately ac135c674fb2d4ae49395e15283be155e826b3ea introduces a bug where one might want to specify an empty dictionary for the `binds` parameter since `{}` is falsey in Python. To get around it for now I was able to do this:\r\n\r\n```python\r\nclass _dict(dict):\r\n    def __nonzero__(self):\r\n        return True\r\n\r\nconnection = db.engine.connect()\r\ntransaction = connection.begin()\r\noptions = dict(bind=connection, binds=_dict())\r\nsession = db.create_scoped_session(options=options)"}}