changing sqlite datetime column type

102 views
Skip to first unread message

Aaron Fischer

unread,
Jun 1, 2012, 6:11:21 PM6/1/12
to servic...@googlegroups.com
When I use ormlite to create a sqlite table it's creating datetime fields as varchar(8000) is there a way to change this behavior?  I tried changing the dialect providers DateTimeColumnDefinition to "DATETIME" but that didn't work.

Demis Bellot

unread,
Jun 1, 2012, 6:29:47 PM6/1/12
to servic...@googlegroups.com
There is no DateTime data type in Sqlite, so we store dates as strings:



On Fri, Jun 1, 2012 at 6:11 PM, Aaron Fischer <pretze...@gmail.com> wrote:
When I use ormlite to create a sqlite table it's creating datetime fields as varchar(8000) is there a way to change this behavior?  I tried changing the dialect providers DateTimeColumnDefinition to "DATETIME" but that didn't work.



Reply all
Reply to author
Forward
0 new messages