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

プラグイン一覧のソート順をnameからcodeに変更 #2029

Merged
merged 1 commit into from
Jan 31, 2017

Conversation

trebla-on
Copy link
Contributor

@trebla-on trebla-on commented Jan 11, 2017

PostgreSQL場合はdtb_plugin.name でソートすると表示順正しくないです。
PostgreSQLのLC_COLLATE「ja_JP.UTF-8」の時だけ正しくないみたい
詳しくはこちらです
http://soudai1025.blogspot.jp/2015/08/mysqlpostgresql.html

PostgreSQL と MySQL でプラグイン一覧のソート順が異なる
#1933

結果は同じなるようにソートのカラム変更しました「name -> code」

@trebla-on
Copy link
Contributor Author

SHOW LC_COLLATE;
lc_collate

ja_JP.UTF-8

SHOW LC_CTYPE;
lc_ctype

ja_JP.UTF-8

■1.collate "ja_JP.utf8"場合はソート結果正しくないです
select name, code from dtb_plugin order by name collate "ja_JP.utf8" ASC;

■2.collate "en_US.utf8"場合はソート結果ただし(MySQLと同じ)
select name, code from dtb_plugin order by name collate "en_US.utf8" ASC;

■3.collate "C"場合はソート結果ただし(MySQLと同じ)
select name, code from dtb_plugin order by name collate "C" ASC;

@Yangsin Yangsin added this to the 3.0.14 milestone Jan 19, 2017
@ryo-endo
Copy link
Contributor

Psql,Mysqlで動作確認OK。
オーナーズストアプラグイン、独自プラグインともに、コードでソートしていることを確認。

@t-nagahashi
Copy link
Contributor

ready-for-merge誤って消したので、戻しました。

@Yangsin Yangsin changed the title PostgreSQL と MySQL でプラグイン一覧のソート順が異なる対応 でプラグイン一覧のソート順をnameからcodeに変更 Jan 31, 2017
@Yangsin Yangsin changed the title でプラグイン一覧のソート順をnameからcodeに変更 プラグイン一覧のソート順をnameからcodeに変更 Jan 31, 2017
@Yangsin Yangsin merged commit 18cd5d4 into EC-CUBE:master Jan 31, 2017
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.

None yet

6 participants