Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Won't Fix
-
11.1(EOL)
-
None
Description
11.1.0-dbg>SET @schema='{"maximum": 18446744073709551}'; |
Query OK, 0 rows affected (0.000 sec) |
|
11.1.0-dbg>
|
Actual result
11.1.0-dbg>SELECT JSON_SCHEMA_VALID(@schema,18446744073709552); |
+----------------------------------------------+ |
| JSON_SCHEMA_VALID(@schema,18446744073709552) | |
+----------------------------------------------+ |
| 1 |
|
+----------------------------------------------+ |
1 row in set (0.000 sec) |
|
11.1.0-dbg>
|
Expected result
11.1.0-dbg>SELECT JSON_SCHEMA_VALID(@schema,18446744073709552); |
+----------------------------------------------+ |
| JSON_SCHEMA_VALID(@schema,18446744073709552) | |
+----------------------------------------------+ |
| 0 |
|
+----------------------------------------------+ |
1 row in set (0.000 sec) |
|
11.1.0-dbg>
|
11.1.0-dbg>SET @schema='{"minimum": 18446744073709551}'; |
Query OK, 0 rows affected (0.000 sec) |
|
11.1.0-dbg>
|
Actual result
11.1.0-dbg>SELECT JSON_SCHEMA_VALID(@schema,18446744073709550); |
+----------------------------------------------+ |
| JSON_SCHEMA_VALID(@schema,18446744073709550) | |
+----------------------------------------------+ |
| 1 |
|
+----------------------------------------------+ |
1 row in set (0.000 sec) |
|
11.1.0-dbg>
|
Expected result
11.1.0-dbg>SELECT JSON_SCHEMA_VALID(@schema,18446744073709550); |
+----------------------------------------------+ |
| JSON_SCHEMA_VALID(@schema,18446744073709550) | |
+----------------------------------------------+ |
| 0 |
|
+----------------------------------------------+ |
1 row in set (0.000 sec) |
|
11.1.0-dbg>
|
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