Shopify 产品 API 整数限制 4

Shopify product API integer limit 4

我遇到了错误

3401314564 is out of range for ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Integer with limit 4

通过 Shopify API 更新产品时。这里的整数是 Shopify 自己的一个,所以它应该在范围内。是否存在数据类型问题?

是的。您需要使用长整数格式。当您在 PostgreSQL 中设置此字段时,限制为 8 将对您有所帮助。

Shopify 两年前就对此发出了警告,但直到现在才真正发挥作用...