dmanty45 / bots

Automatically exported from code.google.com/p/bots
0 stars 0 forks source link

Improve: database fields without fixed lengths #156

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Sqlite does not enforce max lengths of fields; MySQL and PostgreSQL do.
Mostly not a problem, but for soem fields it is better not to enforce strict 
fiedls lengths:
- errortext
- content in persist-tabel.

This can be solved by using a different fields type for MySQL and PostgreSQL.
In bots code, checks on field-lengths cna disappear.

Original issue reported on code.google.com by hjebb...@gmail.com on 20 Aug 2012 at 3:36

GoogleCodeExporter commented 8 years ago
ccode fields should also be variable length

Original comment by mjg1964 on 26 Sep 2012 at 1:01

GoogleCodeExporter commented 8 years ago

Original comment by hjebb...@gmail.com on 31 Mar 2013 at 11:49

GoogleCodeExporter commented 8 years ago

Original comment by hjebb...@gmail.com on 10 Sep 2013 at 12:45