#23803: DateField returns datetime if SQLite field is created as TIMESTAMP
----------------------------------------------+--------------------
     Reporter:  me21                          |      Owner:  nobody
         Type:  Bug                           |     Status:  new
    Component:  Database layer (models, ORM)  |    Version:  1.6
     Severity:  Normal                        |   Keywords:
 Triage Stage:  Unreviewed                    |  Has patch:  0
Easy pickings:  0                             |      UI/UX:  0
----------------------------------------------+--------------------
 I have SQLite database where certain column in table is created as
 //TIMESTAMP//. The database is created not by Django, but by SymmetricDS,
 a DB replication software. The database is replicated from Microsoft SQL
 Server 2005, where it has //datetime// type.
 In my Django application, the model has DateField for that column. The
 returned value has //datetime// type, not //date//.

 If I use the same model with Microsoft SQL Server 2005 (using django-
 pyodbc-azure package), the returned value has //date// type, even though
 the underlying column has //datetime// type.

 I believe that DateField should return //date// always, regardless of DB
 backend. Please consider altering the behaviour.

--
Ticket URL: <https://code.djangoproject.com/ticket/23803>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/047.c03695993bd08062d2eedbedf21beb2f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to