diaspora/diaspora — pull request #2818 by rekado (2012-02-04 04:48:52+00:00)
Title: fix syntax for psql backend

- PostgreSQL doesn't allow double quotes for values. Double quotes are
used for surrounding table names that contain spaces. Single quotes
should be used for values.

- DELETE in a JOIN is not permitted in SQL-99 (see
http://drupal.org/node/555562) so we use USING with WHERE instead