Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
052e415f
R
rails
项目概览
张重言
/
rails
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rails
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
052e415f
编写于
6月 16, 2012
作者:
K
kennyj
提交者:
Carlos Antonio da Silva
6月 18, 2012
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Change minimum (default) log level in PostgreSQL to warning.
上级
8c029184
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
15 addition
and
5 deletion
+15
-5
activerecord/CHANGELOG.md
activerecord/CHANGELOG.md
+6
-0
activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
...b/active_record/connection_adapters/postgresql_adapter.rb
+1
-1
activerecord/test/cases/adapters/postgresql/connection_test.rb
...erecord/test/cases/adapters/postgresql/connection_test.rb
+4
-0
railties/lib/rails/generators/rails/app/templates/config/databases/jdbcpostgresql.yml
...s/rails/app/templates/config/databases/jdbcpostgresql.yml
+2
-2
railties/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml
...ators/rails/app/templates/config/databases/postgresql.yml
+2
-2
未找到文件。
activerecord/CHANGELOG.md
浏览文件 @
052e415f
## Rails 4.0.0 (unreleased) ##
*
PostgreSQL default log level is now 'warning', to bypass the noisy notice
messages. You can change the log level using the
`min_messages`
option
available in your config/database.yml.
*kennyj*
*
Add uuid datatype support to PostgreSQL adapter.
*Konstantin Shabanov*
*
`update_attribute`
has been removed. Use
`update_column`
if
...
...
activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
浏览文件 @
052e415f
...
...
@@ -1450,7 +1450,7 @@ def configure_connection
if
@config
[
:encoding
]
@connection
.
set_client_encoding
(
@config
[
:encoding
])
end
self
.
client_min_messages
=
@config
[
:min_messages
]
if
@config
[
:min_messages
]
self
.
client_min_messages
=
@config
[
:min_messages
]
||
'warning'
self
.
schema_search_path
=
@config
[
:schema_search_path
]
||
@config
[
:schema_order
]
# Use standard-conforming strings if available so we don't have to do the E'...' dance.
...
...
activerecord/test/cases/adapters/postgresql/connection_test.rb
浏览文件 @
052e415f
...
...
@@ -21,6 +21,10 @@ def test_encoding
assert_not_nil
@connection
.
encoding
end
def
test_default_client_min_messages
assert_equal
"warning"
,
@connection
.
client_min_messages
end
# Ensure, we can set connection params using the example of Generic
# Query Optimizer (geqo). It is 'on' per default.
def
test_connection_options
...
...
railties/lib/rails/generators/rails/app/templates/config/databases/jdbcpostgresql.yml
浏览文件 @
052e415f
...
...
@@ -22,8 +22,8 @@ development:
# Minimum log levels, in increasing order:
# debug5, debug4, debug3, debug2, debug1,
# log, notice, warning, error, fatal, and panic
#
The server defaults to notice
.
#min_messages:
warning
#
Defaults to warning
.
#min_messages:
notice
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
...
...
railties/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml
浏览文件 @
052e415f
...
...
@@ -35,8 +35,8 @@ development:
# Minimum log levels, in increasing order:
# debug5, debug4, debug3, debug2, debug1,
# log, notice, warning, error, fatal, and panic
#
The server defaults to notice
.
#min_messages:
warning
#
Defaults to warning
.
#min_messages:
notice
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录