nikrou / eventHandler

a dotclear plugin to manage events in your blog.
Other
2 stars 5 forks source link

Fix a bug caused by the lack of TIMESTAMP function in sqlite #33

Closed scolin closed 8 years ago

scolin commented 8 years ago

When adding an event calendar to the sidebar to the blog and clicking on "all events", dotclear ends up in error with the message

near "'YYY-MM-DD HH:MM:DD'": syntax error (1)

with the date displayed the current date and time. This is actually caused by an sql statement containing the TIMESTAMP function, which sqlite does not recognize. This commit replaces all occurrences of TIMESTAMP with nothing when the database connection is with an sqlite database.