Errata

Essential SQLAlchemy

Errata for Essential SQLAlchemy

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
114
code example after first paragraph

The remote side of the parent relation is given incorrectly. (The parent field references the id of the remote object) The correct example would be

mapper(Level, level_table, properties=dict(
parent=relation(Level, remote_side=[level_table.c.id],
backref='children')))

instead of

mapper(Level, level_table, properties=dict(
parent=relation(Level, remote_side=[level_table.c.parent_id],
backref='children')))

Andreas W?rl  Mar 10, 2013