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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user