Skip to content

Fix #641 - Add VECTOR data type and VECTOR INDEX support#651

Open
predictor2718 wants to merge 2 commits intophpmyadmin:5.11.xfrom
predictor2718:fix/641-vector-data-type
Open

Fix #641 - Add VECTOR data type and VECTOR INDEX support#651
predictor2718 wants to merge 2 commits intophpmyadmin:5.11.xfrom
predictor2718:fix/641-vector-data-type

Conversation

@predictor2718
Copy link
Copy Markdown
Contributor

Summary

  • Added VECTOR as a reserved keyword with FLAG_KEYWORD_DATA_TYPE in MySQL 9.0-9.3 contexts
  • Added VECTOR as a reserved keyword with FLAG_KEYWORD_DATA_TYPE in MariaDB 11.7-12.1 contexts
  • Added VECTOR INDEX and VECTOR KEY as composed key keywords in all affected contexts
  • Previously VECTOR(5) triggered "Unrecognized data type" and VECTOR INDEX was parsed as a column definition

Fixes #641.

Signed-off-by: Nicolai Ehrhardt <245527909+predictor2718@users.noreply.github.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.92%. Comparing base (4c45eac) to head (221efc3).

Additional details and impacted files
@@            Coverage Diff            @@
##             5.11.x     #651   +/-   ##
=========================================
  Coverage     96.92%   96.92%           
  Complexity     2316     2316           
=========================================
  Files            71       71           
  Lines          5110     5110           
=========================================
  Hits           4953     4953           
  Misses          157      157           
Flag Coverage Δ
unit-7.2-ubuntu-latest 96.92% <ø> (ø)
unit-7.3-ubuntu-latest 96.91% <ø> (ø)
unit-7.4-ubuntu-latest 96.89% <ø> (ø)
unit-8.0-ubuntu-latest 96.91% <ø> (ø)
unit-8.1-ubuntu-latest 96.91% <ø> (ø)
unit-8.2-ubuntu-latest 96.87% <ø> (ø)
unit-8.3-ubuntu-latest 96.87% <ø> (ø)
unit-8.4-ubuntu-latest 96.87% <ø> (ø)
unit-8.5-ubuntu-latest 96.87% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Nicolai Ehrhardt <245527909+predictor2718@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant