消息 [101561]
I said qmark vs numeric. I. e. vs:
execute("UPDATE authors set name = :1, email = :2, comment = :3 WHERE id = :4", (form.name, form.email, form.text, form.id))
The sqlite3 module will always support both paramstyles qmark and named, simply because that is what the underlying SQLite engine supports. What paramstyle says is mostly important for third-party software that works across multiple DB-API compliant database modules. paramstyle enables them to use database supported parameter binding.
In reality, though, there will hardly be a wrapper for DB-API modules that does *not* need to special-case anything depending on the underlying database. So they will hardly ever rely only on the paramstyle and threadsafety parameters. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2010-03-23 07:00:33 | ghaering | 修改 | recipients:
+ ghaering, sgala |
| 2010-03-23 07:00:33 | ghaering | 修改 | messageid: <1269327633.42.0.645257437173.issue8196@psf.upfronthosting.co.za> |
| 2010-03-23 07:00:31 | ghaering | 链接 | issue8196 messages |
| 2010-03-23 07:00:30 | ghaering | 创建 | |
|