PostgreSQL: Make l10n_cache.lc_value binary
authorJeff Janes <jeff.janes@gmail.com>
Mon, 5 May 2014 18:20:52 +0000 (11:20 -0700)
committerJeff Janes <jeff.janes@gmail.com>
Mon, 5 May 2014 18:20:52 +0000 (11:20 -0700)
commit0582e3339dbe4cc185f1f25362a47a6a0b3b89b1
treec9225f1b9515ca41faf69c396411118dd3664e47
parente6dd1aa4187e818e34f94828a73e47fc3e3964fc
PostgreSQL: Make l10n_cache.lc_value binary

Change-Id I427c6de5a0a29b43cff755db0eb8a750db620173 increases the
probability that a null byte will attempt to be stored in the
lc_value column.  PostgreSQL does not allow that byte in a text
column, so convert the column to bytea.

If the column already contains corrupted data, the upgrade routine
might fail.  To prevent this, delete the contents of the table before
changing the type.

Bug: 62098
Change-Id: Ie8368bde398b2ae4d3cfc9ee7bf35874bd2ded68
includes/cache/LocalisationCache.php
includes/installer/PostgresUpdater.php
maintenance/postgres/tables.sql