(t *testing.T)
| 1975 | Expected: []sql.Row{{types.NewOkResult(0)}}, |
| 1976 | }, |
| 1977 | { |
| 1978 | Skip: true, |
| 1979 | Query: "SHOW FULL COLUMNS FROM t3", |
| 1980 | Expected: []sql.Row{ |
| 1981 | {"b", "varchar(10)", "utf8mb4_0900_bin", "YES", "", nil, "", "", ""}, |
| 1982 | {"c", "bigint", nil, "YES", "", nil, "", "", ""}, |
| 1983 | }, |
| 1984 | }, |
| 1985 | { |
| 1986 | Skip: true, |
| 1987 | Query: "SELECT * FROM t3 ORDER BY b", |
| 1988 | Expected: []sql.Row{ |
| 1989 | {"abc", 2}, |
| 1990 | {"def", 4}, |
| 1991 | }, |
| 1992 | }, |
| 1993 | }, |
| 1994 | }, |
| 1995 | { |
| 1996 | Name: "error cases", |
| 1997 | SetUpScript: []string{ |
| 1998 | "create table t4 (a int primary key, b int, c int default (10))", |
| 1999 | }, |
| 2000 | Assertions: []queries.ScriptTestAssertion{ |
| 2001 | { |
| 2002 | Query: "ALTER TABLE not_exist DROP COLUMN s", |
| 2003 | ExpectedErr: sql.ErrTableNotFound, |
| 2004 | }, |
| 2005 | { |
| 2006 | Query: "ALTER TABLE t4 DROP COLUMN s", |
| 2007 | ExpectedErr: sql.ErrTableColumnNotFound, |
| 2008 | }, |
| 2009 | { |
| 2010 | Skip: true, |
| 2011 | Query: "ALTER TABLE t4 DROP COLUMN b", |
| 2012 | ExpectedErr: sql.ErrDropColumnReferencedInDefault, |
| 2013 | }, |
| 2014 | }, |
| 2015 | }, |
| 2016 | } |
| 2017 | enginetest.TestDropColumn(t, NewDefaultDuckHarness()) |
| 2018 | } |
| 2019 | |
| 2020 | func TestDropColumnKeylessTables(t *testing.T) { |
| 2021 | enginetest.TestDropColumnKeylessTables(t, NewDefaultDuckHarness()) |
| 2022 | } |
| 2023 | |
| 2024 | func TestCreateDatabase(t *testing.T) { |
| 2025 | enginetest.TestCreateDatabase(t, NewDefaultDuckHarness()) |
| 2026 | } |
| 2027 | |
| 2028 | func TestPkOrdinalsDDL(t *testing.T) { |
| 2029 | t.Skip("wait for fix") |
| 2030 | enginetest.TestPkOrdinalsDDL(t, NewDefaultDuckHarness()) |
| 2031 | } |
| 2032 | |
| 2033 | func TestPkOrdinalsDML(t *testing.T) { |
| 2034 | enginetest.TestPkOrdinalsDML(t, NewDefaultDuckHarness()) |
nothing calls this directly
no test coverage detected