We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The text was updated successfully, but these errors were encountered:
シーケンステーブルの部分は独自に実装する必要がある
むしろ独自の仕組みを避けて、DBMS の機能を使ってくれる方が嬉しいかも。 PostgreSQL なら連番型 (serial) 辺り。
たしか、MDB2 を採用する前は、EC-CUBE もそうでしたよね。
現在のシーケンスだと、DB にデータを直接投入するときなど、いちいち面倒で。 使用状況の不明なシーケンスを生じたり。
Sorry, something went wrong.
@seasoftjapan RDBMS の違いを何らかのかたちで吸収できれば、 serial なり autoincrement でもいいと思います👍
多分、ケアが必要なのは、採番した値の取得ですよね。PostgreSQL や MySQL は、以前のバージョンでできていたので大丈夫な認識ですが、SQLite3 や MS-SQL も類似した機能はありそうです。
以下、実際の動作は試していませんが、ざっと調べた備忘録として。
SELECT ****_id FROM dtb_**** WHERE rowid = last_insert_rowid()
@seasoftjapan ありがとうございます! 以前のバージョンでは、採番の振舞いを吸収するのに DB_TYPE を if 文で分岐していたので、そうならないように SC_Query のロジック内で吸収したいですね。
DB_TYPE
No branches or pull requests
The text was updated successfully, but these errors were encountered: