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
mysql> create table t (pk int primary key, col1 year);
Query OK, 0 rows affected (0.02 sec)
mysql> insert into t values (1, 0);
Query OK, 1 row affected (0.02 sec)
mysql> select * from t;
+----+------+
| pk | col1 |
+----+------+
| 1 | 0000 |
+----+------+
1 row in set (0.01 sec)
Dolt:
# Welcome to the DoltSQL shell.
# Statements must be terminated with ';'.
# "exit" or "quit" (or Ctrl-D) to exit.
new_format> create table t (pk int primary key, col1 year);
new_format> insert into t values (1, 0);
Query OK, 1 row affected (0.00 sec)
new_format> select * from t;
+----+------+
| pk | col1 |
+----+------+
| 1 | 2048 |
+----+------+
1 row in set (0.01 sec)
The 2048 value is confusing.
The text was updated successfully, but these errors were encountered:
MySQL behavior:
Dolt:
The 2048 value is confusing.
The text was updated successfully, but these errors were encountered: