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:
gambas 2021-06-21 19:05:07 +02:00
parent 000a5d29b7
commit 68ecfe8d0f

View file

@ -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);