Fixed test with new error

This commit is contained in:
Zach Musgrave
2022-05-24 11:06:05 -07:00
parent f1f93c19d0
commit 7c21057d9d

View File

@@ -1111,8 +1111,8 @@ func TestAddDropPrimaryKeys(t *testing.T) {
},
Assertions: []queries.ScriptTestAssertion{
{
Query: "ALTER TABLE test ADD PRIMARY KEY (id, c1, c2)",
ExpectedErrStr: "primary key cannot have NULL values",
Query: "ALTER TABLE test ADD PRIMARY KEY (id, c1, c2)",
ExpectedErr: sql.ErrInsertIntoNonNullableProvidedNull,
},
},
}