ddl: support specifying expr uuid() as column default value.#33871
Conversation
|
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. DetailsReviewer can indicate their review by submitting an approval review. |
|
/run-unit-test |
|
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/22e9d25b2418324fa3c1a3994383450c23c86cc3 |
| tk.MustExec("drop table if exists t") | ||
|
|
||
| // create table | ||
| tk.MustExec("create table t (c int(10), c1 varchar(256) default (uuid()))") |
There was a problem hiding this comment.
add a test for show create table t
tangenta
left a comment
There was a problem hiding this comment.
These comments reveal nothing, let's remove them.
Rest LGTM
Co-authored-by: tangenta <tangenta@126.com>
Co-authored-by: tangenta <tangenta@126.com>
Co-authored-by: tangenta <tangenta@126.com>
Co-authored-by: tangenta <tangenta@126.com>
|
/merge |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: 7db2f28 |
TiDB MergeCI notify🔴 Bad News! New failing [2] after this pr merged.
|
What problem does this PR solve?
Issue Number: close #33870
Problem Summary:
MySQL 8.0 supports specifying
uuid()as a column's default value when creating table.What is changed and how it works?
Add
ast.UUIDingetFuncCallDefaultValuefunction.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.