I'm rebuilding app for my client. I write scripts to migrate data from old db to new one. To prevent empty values in column etiquette_start
(what happened in old db), I run
UPDATE items
SET etiquette_start = 'E'
WHERE trim(both ' ' from etiquette_start) = ''
OR etiquette_start is null;
just after importing data. The problem is that scripts works fine on pgAdmin III, but it won't execute on php script. PHP Syntax error isn't the issue here - putting other queries in variable holding query quoted above resulted in successfull data manipulation. There is no PHP error on the page and in logs.