简体   繁体   English

Shopify产品API整数限制4

[英]Shopify product API integer limit 4

I am getting the error 我收到错误

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

when updating a product via the Shopify API. 通过Shopify API更新产品时。 The integer here is one of Shopify's own, so it should be in range. 这里的整数是Shopify自己的整数之一,因此应在范围内。 Is there a data type problem? 有数据类型问题吗?

Yes there is. 就在这里。 You need to use long integer format. 您需要使用长整数格式。 Limit of 8 will help you when you setup this field in PostgreSQL. 在PostgreSQL中设置此字段时,限制为8将对您有所帮助。

Shopify has a warning about this from two years ago, but only now is it really kicking in... Shopify从两年前就对此发出警告,但直到现在它才真正开始……

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM