{{{
35 def quote_value(self, value):
36 # The backend "mostly works" without this function and there
are use
37 # cases for compiling Python without the sqlite3 libraries
(e.g.
38 # security hardening).
39 import sqlite3
40 try:
41 value = sqlite3.adapt(value)
42 except sqlite3.ProgrammingError:
43 pass
44 # Manual emulation of SQLite parameter quoting
45 if isinstance(value, type(True)):
...
}}}
Into this:
{{{
41 try:
42 import sqlite3
43 value = sqlite3.adapt(value)
44 except ImportError:
45 pass
46 except sqlite3.ProgrammingError:
47 pass
48 # Manual emulation of SQLite parameter quoting
49 if isinstance(value, type(True)):
...
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26613>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => assigned
* needs_better_patch: => 0
* owner: nobody => pnl8zp
* needs_tests: => 0
* needs_docs: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/26613#comment:1>
* status: assigned => closed
* resolution: => fixed
--
Ticket URL: <https://code.djangoproject.com/ticket/26613#comment:2>
* status: closed => new
* resolution: fixed =>
Comment:
Please don't mark a ticket as fixed until the respective patch has been
committed. Thank you.
--
Ticket URL: <https://code.djangoproject.com/ticket/26613#comment:3>
Comment (by pnl8zp):
Sorry. Here's a link to the branch:
[https://github.com/pnl8zp/django/tree/ticket_26613]
--
Ticket URL: <https://code.djangoproject.com/ticket/26613#comment:4>
* has_patch: 0 => 1
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/26613#comment:5>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"3630b49b556785af63077407418296ada31b0b3e" 3630b49]:
{{{
#!CommitTicketReference repository=""
revision="3630b49b556785af63077407418296ada31b0b3e"
Fixed #26613 -- Made sqlite3 optional in SchemaEditor.quote_value().
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26613#comment:6>