merge with main

This commit is contained in:
James Cor
2022-11-16 00:48:37 -08:00
2 changed files with 6 additions and 17 deletions

View File

@@ -46,7 +46,7 @@ var skipPrepared bool
// SkipPreparedsCount is used by the "ci-check-repo CI workflow
// as a reminder to consider prepareds when adding a new
// enginetest suite.
const SkipPreparedsCount = 83
const SkipPreparedsCount = 84
const skipPreparedFlag = "DOLT_SKIP_PREPARED_ENGINETESTS"
@@ -505,6 +505,11 @@ func TestBlobs(t *testing.T) {
enginetest.TestBlobs(t, newDoltHarness(t))
}
func TestIndexes(t *testing.T) {
harness := newDoltHarness(t)
enginetest.TestIndexes(t, harness)
}
func TestIndexPrefix(t *testing.T) {
skipOldFormat(t)
harness := newDoltHarness(t)

View File

@@ -718,22 +718,6 @@ var DoltScripts = []queries.ScriptTest{
},
},
},
{
Name: "unique key violation prevents insert",
SetUpScript: []string{
"CREATE TABLE auniquetable (pk int primary key, uk int unique key, i int);",
"INSERT INTO auniquetable VALUES(0,0,0);",
"INSERT INTO auniquetable (pk,uk) VALUES(1,0) on duplicate key update i = 99;",
},
Assertions: []queries.ScriptTestAssertion{
{
Query: "SELECT pk, uk, i from auniquetable",
Expected: []sql.Row{
{0, 0, 99},
},
},
},
},
}
func makeLargeInsert(sz int) string {