如果出现错误:
PG::Error: ERROR: numeric field overflow DETAIL: A field with precision 2, scale 2 must round to a absolute value less than 1
如何配置 postgres 或 ruby/rails_4 pg 库来告诉我哪个字段引发了错误?可以理解的错误消息是:
PG::Error: 错误:数字字段溢出。字段“压力”,值“1111.12”
如果出现错误:
PG::Error: ERROR: numeric field overflow DETAIL: A field with precision 2, scale 2 must round to a absolute value less than 1
如何配置 postgres 或 ruby/rails_4 pg 库来告诉我哪个字段引发了错误?可以理解的错误消息是:
PG::Error: 错误:数字字段溢出。字段“压力”,值“1111.12”