This is how an update is built (stripped)

UPDATE node_data_field_corpo SET field_corpo_value = Con la locuzione Resistenza italiana si indica ... [stripped]

(there is not a quote after "...value = ")

The node definition is very simple: two text field only.

Comments

flexer’s picture

around line 397 of content.module

             $column_assignments[] = $attributes['column'] . ' = %s';

should be

             $column_assignments[] = $attributes['column'] . " = '%s'";
JonBob’s picture

Thanks for this. Good catch. The fix will be committed when I get back to my testbench.

smithmb’s picture

Came here to post this bug and found a post about it already. I can both confirm the bug exists and change fixes it.

JonBob’s picture

Status: Active » Fixed

Applied.

yched’s picture

JonBob, your commit about this bug altered the "$op == 'insert'" part only.
Should'nt that be applied to "$op == 'update'" as well ?

sami_k’s picture

I believe the update op needs to be fixed as well as it fixed the following bug: http://drupal.org/node/59850

sami_k’s picture

Status: Fixed » Active
sami_k’s picture

It looks like this patch was applied in 1.52 and the removed in 1.53. Changing line 404 from:

$column_assignments[] = $attributes['column'] .' = %s';

to

$column_assignments[] = $attributes['column'] ." = '%s'";

Does seem to fix the update problem.

JonBob’s picture

Status: Active » Fixed

Sorry about that. Should be fixed again by The Behemoth Patch from Hell (which requires an update.php run, BTW).

Anonymous’s picture

Status: Fixed » Closed (fixed)