phpmyadmin / phpmyadmin/sql-parser

uuid datatype not recognized for MariaDB 10.7+

Open
#634 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement kind/support
Dominant language
PHP
Stars
485
Forks
119
PR merge metrics
No merged PRs in 30d

Description

Since MariaDB 10.7 a column could have a datatype uuid, but this type is not recognized by the parser:

CREATE TABLE `users` (
  `id` uuid NOT NULL PRIMARY
);
Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the supplied CREATE TABLE statement through the SQL parser and inspect how datatype tokens are handled. Update recognition for MariaDB 10.7's uuid datatype, then add or run parser coverage confirming the statement is accepted.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, sql
Domain
databases
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.