okfn/ckan — pull request #561 by vitorbaptista (2013-03-05 21:04:15+00:00)
Title: [#542] Remove usage of postgres' function that's not available in < 9.1

The function left() was only added in Postgres 9.1, but we can easily use
substr() to achieve the same effect.

Fixes #542.