Unlimited string fields now use 'MEDIUMTEXT' type instead of 'TEXT', so that their actual maximum size is now 16 Mb.
[GB.DB.MYSQL] * BUG: Unlimited string fields now use 'MEDIUMTEXT' type instead of 'TEXT', so that their actual maximum size is now 16 Mb.
This commit is contained in:
parent
000a5d29b7
commit
68ecfe8d0f
1 changed files with 1 additions and 1 deletions
|
@ -1766,7 +1766,7 @@ static int table_create(DB_DATABASE *db, const char *table, DB_FIELD *fields, ch
|
|||
case GB_T_STRING:
|
||||
|
||||
if (fp->length <= 0 || fp->length > 255) //mysql supports upto 255 as varchar
|
||||
type = "TEXT";
|
||||
type = "MEDIUMTEXT";
|
||||
else
|
||||
{
|
||||
sprintf(_buffer, "VARCHAR(%d)", fp->length);
|
||||
|
|
Loading…
Reference in a new issue