Skip to content

Chapter example 7-25: o1.line_items.append(line1) #4

Description

@Rockyzsu

Chapter example 7-25

o1.line_items.append(line1)

OperationalError: (pymysql.err.OperationalError) (1054, "Unknown column 'line_items.line_item_id' in 'field list'")
[SQL: SELECT line_items.line_item_id AS line_items_line_item_id, line_items.order_id AS line_items_order_id, line_items.cookie_id AS line_items_cookie_id, line_items.quantity AS line_items_quantity, line_items.extended_cost AS line_items_extended_cost 
FROM line_items 
WHERE %(param_1)s = line_items.order_id ORDER BY line_items.line_item_id]
[parameters: {'param_1': 3}]
(Background on this error at: https://sqlalche.me/e/14/e3q8)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions