When adding a computed value and selecting "store to database" -option with a default value, the SQL code breaks. I don't know why this is, but always when using a default value, the new field value would not be saved at the content_type_whatever -column, where I think it should. No checkboxes were selected except for the "display value" -checkbox.
After the faulty insert code, all the column alter's and update's break because there is no column to be updated.
Comments
Comment #1
cheater commentedI experience the same problem.
I tried a fresh, minimal installation of Drupal 5.7, CCK, and SimpleMenu, Views.
the error displayed is:
What I did:
&node_field[0]['value'] = 2;I find this a critical bug and labeled it as such.
Is there a workaround, and if so, what is it?
If there is a way to fix it, I would be willing to participate in fixing the issue, given a hand with this from one of the developers familiar with computed field.
Comment #2
Walterh commentedI have a same kind of problem. When I import nodes (using the Node Import module) I get SQL-errors on all the computed field, while they always worked fine for me. When I make new nodes by hand, the problem doesn't occurproblem solved, the problem was not related to the computed fields
Comment #3
deekayen commented