-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default value for TEXT, BLOB or JSON columns #45506
Comments
Looks like #10377 and #32608 should have covered this. |
Note that MySQL 8.0.34 and MySQL 8.1.0 now support |
TiDB only supports several functions ( |
@CbcWestwolf Yes, this includes allowing users to use a UUID PK. CREATE TABLE t(
uuid BINARY(16) PRIMARY KEY DEFAULT (UUID_TO_BIN(UUID())),
c1 VARCHAR(255) NOT NULL
);
TiDB:
|
This now works with TiDB:
@CbcWestwolf I think we can close this isue |
Bug Report
TiDB doesn't allow a default value for TEXT, BLOB or JSON columns.
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
With MySQL 8.1.0:
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: