It is possible that there may have been records in the {metatag} table from really early releases of the codebase, so add an update script to remove anything that matches 'a:0:{}'.

Files: 
CommentFileSizeAuthor
#3 metatag-n1862570-3.patch622 bytesDamienMcKenna
PASSED: [[SimpleTest]]: [MySQL] 11 pass(es). View
#1 metatag-n1862570.patch714 bytesDamienMcKenna
PASSED: [[SimpleTest]]: [MySQL] 11 pass(es). View

Comments

DamienMcKenna’s picture

Status: Active » Needs review
FileSize
714 bytes
PASSED: [[SimpleTest]]: [MySQL] 11 pass(es). View

This patches NULL, '' and 'a:0:{}' values.

DamienMcKenna’s picture

Status: Needs review » Fixed

Committed.

DamienMcKenna’s picture

Status: Fixed » Needs review
FileSize
622 bytes
PASSED: [[SimpleTest]]: [MySQL] 11 pass(es). View

A small follow-up - the SQL query handling system in Drupal removes the "{}" characters so it needs to be inserted via a query argument.

DamienMcKenna’s picture

Status: Needs review » Fixed

Committed, so now it will actually remove records with an empty array.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.