#2944: With Python 2.5 dbshell launches wrong sqlite shell
--------------------------------+-------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: closed | Component: django-admin.py
Version: | Resolution: invalid
Keywords: | Stage: Accepted
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
--------------------------------+-------------------------------------------
Changes (by Paul Bx <[EMAIL PROTECTED]>):
* status: new => closed
* resolution: => invalid
Comment:
I'm confused by the request as well (and I'm the one who created the
original "dbshell" command).
As Nick notes, there are two pieces to using SQLite with Python: DB-API
modules, and the SQLite C library. (The command-line SQLite client
interacts with the library and has nothing to do with Python per se.)
Python 2.5 ships with SQLite *bindings* in the form of a "sqlite3" DB-API
module in the standard library. This means you no longer need the third-
party "pysqlite2" DB-API module. But *both* of those modules require that
you have version 3 of the SQLite binary (library) installed on your
machine.
Django already has code that takes care of doing the right import
depending on your Python version.
Confusingly, the "2" in the name of the "pysqlite2" module refers not to
SQLite 2 (which does have a different file format from SQLite 3), but
presumably to the fact that it's the second major version of the pysqlite
module. Both the pysqlite2 module and the new sqlite3 module talk to
SQLite version 3 only.
I'm marking this as "invalid" for now; please reopen with clarification if
we have misunderstood.
--
Ticket URL: <http://code.djangoproject.com/ticket/2944#comment:5>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---