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
-
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue is caused by |
Assignee | Rucha Deodhar [ rucha174 ] |
Fix Version/s | 11.1 [ 28549 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Assignee | Rucha Deodhar [ rucha174 ] | Alexey Botchkov [ holyfoot ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Assignee | Alexey Botchkov [ holyfoot ] | Rucha Deodhar [ rucha174 ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Link | This issue relates to MDEV-31104 [ MDEV-31104 ] |
Fix Version/s | 11.1.1 [ 28704 ] | |
Fix Version/s | 11.1 [ 28549 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
patch: https://github.com/MariaDB/server/tree/bb-MDEV-30705-json_schema