提交 1f41f2ac 编写于 作者: Y Yuji Yaginuma 提交者: yuuji.yaginuma

Merge pull request #36612 from y-yagi/make_setup_works_when_using_with_locales_other_than_en

Make "bin/setup" works when using PostgreSQL with locales other than en locale
上级 8ebbd953
......@@ -46,7 +46,7 @@ def postgresql_connection(config)
conn = PG.connect(conn_params)
ConnectionAdapters::PostgreSQLAdapter.new(conn, logger, conn_params, config)
rescue ::PG::Error => error
if error.message.include?("does not exist")
if error.message.include?(conn_params[:dbname])
raise ActiveRecord::NoDatabaseError
else
raise
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册