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
The mysql client has the \W operation to enable showing warnings by default. dolt sql doesn't support that. There is also the > SET SQL_WARNINGS = 1; approach which dolt sql doesn't support either.
We want to enable show warnings by default. This deviates from mysql client a little, but it's the right thing to do.
Generate a warning for testing with the explain warning: EXPLAIN SELECT * FROM T
db/main> create table t (i int primary key);
db/main*> \commit -A -m "asdf";
db/main> EXPLAIN SELECT * FROM T ;
+----+-------------+-------+------------+------+---------------+------+---------+------+------+----------+-------+
| id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
+----+-------------+-------+------------+------+---------------+------+---------+------+------+----------+-------+
| 1 | SELECT | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | |
+----+-------------+-------+------------+------+---------------+------+---------+------+------+----------+-------+
1 row in set (0.00 sec)
db/main> show warnings;
+---------+------+------------------------------------------------------------------------------+
| Level | Code | Message |
+---------+------+------------------------------------------------------------------------------+
| Warning | 0 | EXPLAIN Output is currently a placeholder; use EXPLAIN PLAN for old behavior |
+---------+------+------------------------------------------------------------------------------+
1 row in set (0.00 sec)
The text was updated successfully, but these errors were encountered:
The mysql client has the
\W
operation to enable showing warnings by default.dolt sql
doesn't support that. There is also the> SET SQL_WARNINGS = 1;
approach whichdolt sql
doesn't support either.We want to enable
show warnings
by default. This deviates from mysql client a little, but it's the right thing to do.Generate a warning for testing with the explain warning:
EXPLAIN SELECT * FROM T
The text was updated successfully, but these errors were encountered: