SA Bugzilla – Bug 5730
[review] PostgreSQL 8.1 and above shows a lot of warnings "nonstandard use of \\ in a string literal at character ..." when using bayes
Last modified: 2009-09-27 17:40:36 UTC
When using bayes storage using Mail::SpamAssassin::BayesStore::PgSQL module then a Postgres server logs a lot of warnings: WARNING: nonstandard use of \\ in a string literal at character (...) HINT: Use the escape string syntax for backslashes, e.g., E'\\'. I'll attach a patch that does just that - uses E'\\' syntax if database version is at least 8.1.0.
Created attachment 4193 [details] Use escape string syntax for backslashes for PostgreSQL 8.1 and later
*** Bug 5299 has been marked as a duplicate of this bug. ***
Thanks for the patch. I've applied it and tested it under 8.2 and 7.4.18. Sending lib/Mail/SpamAssassin/BayesStore/PgSQL.pm Transmitting file data . Committed revision 598150.
reopening for application to 3.2.x, since debian and Ubuntu are now packaging it in their builds of 3.2.4... my vote: +1
+1
applied: : jm 95...; svn commit -m "bug 5730: when using Postgres >= 8.1.0 with Bayes, this error occurs: 'WARNING: nonstandard use of \\ in a string literal at character'. fix, thanks to Tomasz Ostrowski" lib/Mail/SpamAssassin/BayesStore/PgSQL.pm Sending lib/Mail/SpamAssassin/BayesStore/PgSQL.pm Transmitting file data . Committed revision 660135.