“If debugging is the process of removing bugs, then programming must be the process of putting them in.” – Edsger Dijkstra
This is the Bug Tracking System for the Flyspray project. This is not a demo! Before opening a new task, please read the guidelines!
Do not issue bugs reports against versions earlier than 0.9.9.6
Security problem? Check the security section.
FS#1364 - Postgres support for 1.0
Attached to Project:
Flyspray - The bug killer!
Opened by Tobias Schittkowski (tobias.schittkowski) - Tuesday, 23 October 2007, 18:03 GMT+1
Opened by Tobias Schittkowski (tobias.schittkowski) - Tuesday, 23 October 2007, 18:03 GMT+1
|
DetailsIncluded is a patch for pgsql-support in postgres. Note: some database fields have to be changed manually after an update from 0.x (the NOT NULL has to be removed). These fields are stated in the patch. |
This task depends upon
patch_pgsqlsupport.diff
I suppose that you tested everything with mysql as well?
I did a quick test with mysql, I also see the problems with db columns beeing NOT NULL and the problem displaying the tasklist (...field0), perhaps this is due to my changes...
Attached is a new patch (including the first one) which fixes my problems with the field0 in some templates.
I'll look into it as soon as possible...in the meantime can do further testing if you like. Changes like yours are extremly sensitive unfortunately...
Why did you add comments like "You have to change field_changed in PGSQL for NOT NULL=false after upgrade from 0.x"? Such comments don't make sense in the code.
Also, the field0 fixes are not wanted, since the "field0" must not exist in the first place. Fixing the symptoms doesn't fix any problems.
The comments to change the field type where meant for me for debugging - so that I know what to change when the same code gives an error again.
I was not able to find out the reason for the field0-bug, so I had to change the templates to handle the error.
Could you please adjust the comments so that they are more clear? Comments which are not obvious for all developers on first sight might not exactly be useful.
I'll look into the field0 problem myself.
I haven't researched on how flyspray is handling database support, but i will give my opinion. All software that runs under more than one engine should more or less have this structure:
Any decent ORM package can do this. My thesis (done in Java) uses sqlmaps, so the code in each web page is the same for any database, the only thing that changes is the external file with the sql statements.
This would make it extremely easy to add new database engine support.