1
0
mirror of https://github.com/MariaDB/server.git synced 2026-10-23 18:49:29 +03:00
Files
mariadb/plugin
Alexander Barkov bfcb303c05 MDEV-38871 Variable declarations accept unexpected data type attributes (lengh,dec,srid)
Some data types:
- RECORD
- assoc arrays
- SYS_REFCURSOR

erroneously accepted non-relevant attributes:
- length
- scale
- character set / collation
- REF_SYSTEM_ID

Fixing to raise an error.

Details:

- Overriding get_column_attributes() in Type_handler_row,
  Type_handler_sys_refcursor, Type_handler_assoc_array.

- Moving a piece of the old code into a new method
  Type_handler::check_data_type_attributes(), to reuse it
  for testing attributes for both plugin types and TYPE-def types.

- Reusing check_data_type_attributes() in methods
  * LEX::set_field_type_udt_or_typedef()
  * LEX::set_field_type_udt()

- Adding opt_binary into the rule field_type_all_with_typedefs,
  into the grammar branch for the plugin types, as XMLTYPE needs it.
2026-04-06 15:00:16 +04:00
..
2025-07-31 20:55:47 +02:00
2024-12-02 17:51:17 +02:00
2025-08-03 15:01:09 +02:00
2024-05-27 12:39:02 +02:00
2026-01-31 14:08:54 +01:00
2025-04-22 16:26:36 -04:00
2026-02-09 20:55:41 +01:00
2026-02-09 20:55:41 +01:00
2026-02-09 20:55:41 +01:00
2024-01-18 19:22:23 +02:00
2025-04-18 17:11:01 +02:00