-
-
Notifications
You must be signed in to change notification settings - Fork 584
Closed
Labels
bugSomething isn't workingSomething isn't workinggood reproEasily reproducible bugsEasily reproducible bugssqlIssue with SQLIssue with SQL
Description
Repro:
PS C:\Users\timse\dolthub\dolt\test_unique_key_on_duplicate> dolt sql -q "create table t (c1 int, c2 int, c3 int, unique key(c1,c2))"
PS C:\Users\timse\dolthub\dolt\test_unique_key_on_duplicate> dolt sql -q "insert into t(c1,c2,c3) values (0,0,0) on duplicate key update c3=0"
Query OK, 1 row affected (0.00 sec)
PS C:\Users\timse\dolthub\dolt\test_unique_key_on_duplicate> dolt sql -q "insert into t(c1,c2,c3) values (0,0,0) on duplicate key update c3=0"
Query OK, 0 rows affected (0.00 sec)
PS C:\Users\timse\dolthub\dolt\test_unique_key_on_duplicate> dolt sql -q "insert into t(c1,c2,c3) values (0,0,1) on duplicate key update c3=0"
Query OK, 0 rows affected (0.00 sec)
PS C:\Users\timse\dolthub\dolt\test_unique_key_on_duplicate> dolt sql -q "select * from t"
+----+----+----+
| c1 | c2 | c3 |
+----+----+----+
| 0 | 0 | 1 |
| 2 | 0 | 0 |
| 0 | 0 | 0 |
| 0 | 0 | 0 |
+----+----+----+
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood reproEasily reproducible bugsEasily reproducible bugssqlIssue with SQLIssue with SQL