Trying to clear data in a column of the "character varying type", I send the following PostgreSQL request in PHP:
pg_query("UPDATE ".$database['prefix']."products SET file='' WHERE id=".$id) or die(pg_last_error());
The field is not truely cleared, but two single quotes are written in it.
In the database, I tried replacing ''::character varying by NULL::character varying, but it does not change anything.
What should be changed so that the field can be emptied?