gerrit/gerrit-server
Saša Živkov 1abb73e39e Fix account_patch_reviews for mysql
Creation of the account_patch_reviews table failed on mysql with the
file_name column being set to varchar(4096), see [1].
mysql has a limit of 767 bytes max key length for InnoDb tables.
The max key length limit applies to each column in the (primary key)
index.

MySql uses up to 3 bytes per character when utf8 character set is used.
Therefore, the max length of the file_name column is 255 characgters
when using utf8 character set. This change sets the file_name column
length to 255 when using mysql.

The whole "CREATE TABLE ..." statement is extracted into the
MysqlAccountPatchReviewStore subclass. This gives more freedom
for further mysql specific tuning.

Change-Id: If35aff6c8dc515228c770729bfbf3a83e3dcc6bf
2018-02-15 21:40:22 +00:00
..
src Fix account_patch_reviews for mysql 2018-02-15 21:40:22 +00:00
BUILD Don't ship bouncycastle libraries in plugin API 2017-04-07 07:38:04 +02:00