Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The big value dependencies on multipleOf. So, for example, for multipleOf=2 the big values starts from 9007900000000001:
SET @schema = '{ |
"multipleOf": 2
|
}'; |
SELECT JSON_SCHEMA_VALID(@schema, '9006999999999999'); |
SELECT JSON_SCHEMA_VALID(@schema, '9007900000000001'); |
Actual result:
SELECT JSON_SCHEMA_VALID(@schema, '9006999999999999'); |
JSON_SCHEMA_VALID(@schema, '9006999999999999') |
0
|
SELECT JSON_SCHEMA_VALID(@schema, '9007900000000001'); |
JSON_SCHEMA_VALID(@schema, '9007900000000001') |
1
|
Expected result:
SELECT JSON_SCHEMA_VALID(@schema, '9006999999999999'); |
JSON_SCHEMA_VALID(@schema, '9006999999999999') |
0
|
SELECT JSON_SCHEMA_VALID(@schema, '9007900000000001'); |
JSON_SCHEMA_VALID(@schema, '9007900000000001') |
0
|
Attachments
Issue Links
- is caused by
-
MDEV-27128 Implement JSON Schema Validation FUNCTION
- Closed
- relates to
-
MDEV-31104 Implement strntold (string to long double) conversion function
- Open