dockyard/postgres_ext — pull request #22 by skandragon (2012-10-26 03:29:11+00:00)
Title: Attempted fix for array of strings with special characters

This escapes PostgreSQL strings with double quotes in the SQL in all cases, while leaving other types unquoted. A double quote itself is stored as \", and nil is encoded as NULL directly, without quotes.

All previous tests passed, although few of them seem to actually exercise PostgreSQL itself, so I am not sure how reliable some of them are. A few new tests were added as well.