MCPcopy Create free account
hub / github.com/apecloud/myduckserver / replaceQueryInScriptTest

Function replaceQueryInScriptTest

main_test.go:2420–2438  ·  view source on GitHub ↗
(tests []queries.ScriptTest, targetScript string, targetQuery string, updatedQuery string)

Source from the content-addressed store, hash-verified

2418 "CREATE table test (pk int primary key, uk int unique)",
2419 // skip "ALTER TABLE MODIFY column making UNIQUE" due to differences in error messages
2420 "CREATE table test (pk int primary key, uk int)",
2421 // skip "ALTER TABLE MODIFY column with KEY" since duckdb has more strict rules for modifying columns with constraints
2422 "CREATE table test (pk int primary key, mk int, index (mk))",
2423 // skip "Identifier lengths"
2424 "create table t1 (a int primary key, b int)",
2425 //skip some assertions in "Index case-insensitivity"
2426 "alter table t2 rename index myIndex2 to mySecondIndex;",
2427 "show indexes from t2;",
2428 "alter table t3 rename index MYiNDEX3 to anotherIndex;",
2429 "show indexes from t3;",
2430 )
2431
2432 enginetest.TestAlterTable(t, harness)
2433}
2434
2435func TestDateParse(t *testing.T) {
2436 harness := NewDefaultDuckHarness()
2437 if harness.IsUsingServer() {
2438 t.Skip("issue: https://github.com/dolthub/dolt/issues/6901")
2439 }
2440 enginetest.TestDateParse(t, NewDefaultDuckHarness())
2441}

Callers 2

TestColumnDefaultsFunction · 0.85
TestAlterTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected