Commit 88494353 authored by Benoît Minisini's avatar Benoît Minisini
Browse files

Creating a numeric field with a default value works correctly now.

[GB.DB.MYSQL]
* BUG: Creating a numeric field with a default value works correctly now.
parent 04d6ec05
Pipeline #359974810 passed with stage
in 26 minutes and 49 seconds
......@@ -1798,7 +1798,7 @@ static int table_create(DB_DATABASE *db, const char *table, DB_FIELD *fields, ch
if (fp->def.type != GB_T_NULL)
{
DB.Query.Add(" NOT NULL DEFAULT");
DB.Query.Add(" NOT NULL DEFAULT ");
DB.FormatVariant(&_driver, &fp->def, DB.Query.AddLength);
}
else if (DB.StringArray.Find(primary, fp->name) >= 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment