Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit fa264a8

Browse files
committed
Revert to 255 length, TODO investigate max index size errors
1 parent 47fb303 commit fa264a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ServiceStack.OrmLite.MySql/Converters/MySqlStringConverters.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace ServiceStack.OrmLite.MySql.Converters
55
{
66
public class MySqlStringConverter : StringConverter
77
{
8-
public MySqlStringConverter() : base(8000) {}
8+
public MySqlStringConverter() : base(255) {}
99

1010
//https://stackoverflow.com/a/37721151/85785
1111
public override int MaxVarCharLength => UseUnicode ? 16383 : 21844;
@@ -15,7 +15,7 @@ public MySqlStringConverter() : base(8000) {}
1515

1616
public class MySqlCharArrayConverter : CharArrayConverter
1717
{
18-
public MySqlCharArrayConverter() : base(8000) { }
18+
public MySqlCharArrayConverter() : base(255) { }
1919

2020
public override string MaxColumnDefinition => "LONGTEXT";
2121
}

0 commit comments

Comments
 (0)