Hello! Does SQLAlchemy use E'' escapes for PostgreSQL? Postgres recommends 
<https://www.postgresql.org/docs/8.1/static/sql-syntax.html#SQL-SYNTAX-CONSTANTS,>
 
using E'' since version 8.1 (released in 2005) and requires it since… not 
sure, I think since 9.0 or 9.1.

I.e. when I want to insert 'xy\\nzy' instead of 
INSERT INTO test (somestring) VALUES ('xy\\\\nzy');

SA should execute
INSERT INTO test (somestring) VALUES (E'xy\\nzy');

Currently I use SQLAlchemy 0.7.3 (yes, I know it's old, I'm ready to 
upgrade) and Postgres issues warnings like this: "WARNING:  nonstandard use 
of escape in a string literal."

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to