isutton/CocoaSQL — Issue #3: Implement question mark placeholder in PostgreSQL driver.
Author: isutton
Created: 2012-02-20 00:00:51+00:00
State: open

PostgreSQL doesn't support question mark (`?`) placeholder, but it uses the "dollar number" notation (`$1`) instead. I should implement this conversion when the user asks to prepare a sql statement, transforming:

DELETE FROM t WHERE i = ?

in

DELETE FROM t WHERE i = $1