cakephp/cakephp — pull request #2571 by cuppett (2013-12-30 02:44:19+00:00)
Title: Must double quote the schema name in query

Schema names with reserved words such as "create" will fail this query without double quotes.

Attempted prepared statement with ? placeholder. This failed with the following CakePHP error:

Error: A Database connection using "Postgres" was missing or unable to connect.
The database server returned this error: SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "$1" LINE 1: SET search_path TO $1 ^