Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.
This repository was archived by the owner on May 14, 2024. It is now read-only.

? does not make sense #207

Open
Open
@bingtel

Description

@bingtel

when results = db.select('select * from user where id = ?', [1]) run, it turns out that:
orator/connections/connection.py", line 341, in _try_again_if_caused_by_lost_connection raise QueryException(query, bindings, e) orator.exceptions.query.QueryException: not all arguments converted during string formatting (SQL: select id, name from user where id = ? ([1]))

I have to change ? into %s.
results = db.select('select * from user where id = %s', [1]).

So the documentation is wrong.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions