aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorYasuo Honda <yasuo.honda@gmail.com>2017-03-22 14:35:41 +0000
committerYasuo Honda <yasuo.honda@gmail.com>2017-03-22 18:08:26 +0000
commit03224b12b8e81b23d529614b5f82166825e185d6 (patch)
tree3ed4cdf37bb0e86871449b40eca6b5e524e2d50d /activerecord
parent34fe2a4fc778d18b7fe6bdf3629c1481bee789b9 (diff)
downloadrails-03224b12b8e81b23d529614b5f82166825e185d6.tar.gz
rails-03224b12b8e81b23d529614b5f82166825e185d6.tar.bz2
rails-03224b12b8e81b23d529614b5f82166825e185d6.zip
Suppress `WARNING: nonstandard use of \\ in a string literal` warning
by setting `escape_string_warning = off`
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/adapters/postgresql/bytea_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/bytea_test.rb b/activerecord/test/cases/adapters/postgresql/bytea_test.rb
index 505c297cd4..99175e8091 100644
--- a/activerecord/test/cases/adapters/postgresql/bytea_test.rb
+++ b/activerecord/test/cases/adapters/postgresql/bytea_test.rb
@@ -89,6 +89,7 @@ class PostgresqlByteaTest < ActiveRecord::PostgreSQLTestCase
Thread.new do
other_conn = ActiveRecord::Base.connection
other_conn.execute("SET standard_conforming_strings = off")
+ other_conn.execute("SET escape_string_warning = off")
end.join
test_via_to_sql