You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATETABLEt(pk intprimary key, val int DEFAULT (pk *2))
Mysql with describe t will print
mysql> desc t;
+-------+------+------+-----+------------+-------------------+
| Field | Type | Null | Key | Default | Extra |
+-------+------+------+-----+------------+-------------------+
| pk | int | NO | PRI | NULL ||| val | int | YES || (`pk`* 2) | DEFAULT_GENERATED |
+-------+------+------+-----+------------+-------------------+
2 rows inset (0.02 sec)
GMS will instead return ((pk * 2)) for val
The text was updated successfully, but these errors were encountered:
VinaiRachakonda
changed the title
Describe for expression double wraps expressions
Describe for default value expressions is formatted incorrectly
Jun 22, 2022
Consider the following example
Mysql with
describe t
will printGMS will instead return
((pk * 2))
for valThe text was updated successfully, but these errors were encountered: