Issue Details (XML | Word | Printable)

Key: PYFB-48
Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Pavel Cisar
Reporter: Pavel Cisar
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Firebird driver for Python

Support for named parameters in SQL queries

Created: 25/Feb/15 10:21 AM   Updated: 25/Feb/15 10:21 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None


 Description  « Hide
Other python database adapters support specifying a name for the parameters in the SQL string and passing a dict to execute(), to bind the parameters to its values. Something like this:

> cur.execute('select * from customers where id = %(cid)d', {'cid': 3})

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.