Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostgreSQL環境で発生する数値エラーの修正 #4641

Merged
merged 1 commit into from
Aug 20, 2020

Conversation

kiy0taka
Copy link
Contributor

@kiy0taka kiy0taka commented Aug 6, 2020

概要(Overview・Refs Issue)

PostgreSQL環境下において、商品管理/受注管理/会員管理に2147483648 以上の値を入力して検索すると以下のエラーが発生する。

SQLSTATE[22003]: Numeric value out of range: 7 ERROR:  value "2147483648" is out of range for type integer

PostgreSQLで使用されるidはinteger型であるため、-2147483648から+2147483647の範囲を超えると上記のエラーになる。
MySQL環境ではint(10) unsignedで0から4294967295の範囲になるが、4294967296以上でもエラーにはならない。

方針(Policy)

実装に関する補足(Appendix)

テスト(Test)

相談(Discussion)

マイナーバージョン互換性保持のための制限事項チェックリスト

  • 既存機能の仕様変更
  • フックポイントの呼び出しタイミングの変更
  • フックポイントのパラメータの削除・データ型の変更
  • twigファイルに渡しているパラメータの削除・データ型の変更
  • Serviceクラスの公開関数の、引数の削除・データ型の変更
  • 入出力ファイル(CSVなど)のフォーマット変更

レビュワー確認項目

  • 動作確認
  • コードレビュー
  • E2E/Unit テスト確認(テストの追加・変更が必要かどうか)
  • 互換性が保持されているか
  • セキュリティ上の問題がないか

@kiy0taka kiy0taka added the bug label Aug 6, 2020
@kiy0taka kiy0taka added this to the 4.0.5 milestone Aug 12, 2020
Copy link
Contributor

@okazy okazy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

動作確認してエラーが発生しなくなっていることを確認しました。
修正コードも問題ないと思います。

@okazy okazy merged commit 69eff6d into EC-CUBE:4.0 Aug 20, 2020
@okazy
Copy link
Contributor

okazy commented Aug 20, 2020

ありがとうございます。取り込みました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants