Actions
Defect #3699
closedProblem with sqlquery in journal.rb
Start date:
2009-07-31
Due date:
% Done:
70%
Estimated time:
1.00 h
Resolution:
Wont fix
Affected version:
Description
I noticed that problem on IRC channel... then created that solution.
In Oracle DB RM throws SQL error.
It's caused by
"#{Journal.table_name}.notes <> ''"
In Oracle DB RoR text is translated to CLOB...
Unfortunately Oracle CLOB cannot be compared with string like that...
solution is:
length(#{Journal.table_name}.notes)>0
tested with PgSQL.
Should also work with other DB.
My diff (RM 8.4) in the attachment
Files
Actions