tuxmobil / CampFahrplan

View the conference schedule of the Chaos Communcation Camp/Congress
59 stars 23 forks source link

Error prone data type definition "STRING" for database columns #178

Closed johnjohndoe closed 7 years ago

johnjohndoe commented 7 years ago

Problem

Currently, some database columns such as for the "lectures" table define the data type "STRING". This is not a native SQLite data type. By the rules of column affinity this is mapped into the storage class "NUMERIC".

Error scenario

In the following scenario this behavior causes an error. Given there is a room named "008" and this information is stored in a database column typed as "STRING" the room name value becomes 8. When the schedule is updated the old and new room names are compared. Due to loosing the leading zeros this lecture is always marked as changed, falsely.

Recommended solutions

johnjohndoe commented 7 years ago

:arrow_right: This issue has been migrated to here: https://github.com/EventFahrplan/EventFahrplan/issues/5