fix error at change type of text field to integer in PostgreSQL

You never use `$result` here.