Pull requests

#9 Merged
Repository
Deleted repository
Branch
fix-sessionmaker-info (f188e28aea3b)
Repository
zzzeek/sqlalchemy sqlalchemy
Branch
master

Don't barf on Session(info=...) from sessionmaker(info=None)

Author
  1. Robin Schoonover
Reviewers
Description

Considering the following example:

from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker

sessioncls = sessionmaker(bind=create_engine('sqlite://'))
session = sessioncls(info={'hello' : 'world'})

sessionmaker's generated factory will throw an error.

Comments (1)