ryandotsmith/queue_classic — pull request #39 by csquared (2012-01-26 20:52:02+00:00)
Title: Newline serialization

strings need to be prefaced with the constant E to turn on c-style escape sequences. i updated the enqueue method to use the E constant so newlines work right and also had to escape the string to make sure the quote test still passed.

all tests passing and this branch is working with my app.

if you want to see the escape warning, run the tests with the E deleted.

for more info:
http://www.postgresql.org/docs/8.2/static/sql-syntax-lexical.html#SQL-SYNTAX-CONSTANTS

This pull request also includes my synchronous testing tip.