MXS-2263: Retain integer sign information

The unsignedness of a column is now retained in the Column type as well as
the JSON schema. This allows correct conversion of unsigned integer types
which will be done in a later commit.
This commit is contained in:
Markus Mäkelä
2019-09-25 12:55:44 +03:00
parent 117e2e7e88
commit e1ff978b80
4 changed files with 53 additions and 10 deletions

View File

@ -102,6 +102,11 @@ bool json_extract_field_names(const char* filename, std::vector<Column>& columns
{
MXS_WARNING("No \"length\" value defined. Treating as default length field.");
}
if ((value = json_object_get(val, "unsigned")) && json_is_boolean(value))
{
columns.back().is_unsigned = json_boolean_value(value);
}
}
}
else