Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit b011a56

Browse files
authored
Merge pull request #20 from liquidata-inc/zachmu/pr-feedback
Fixed test error caused by deleting Alterable interface.
2 parents 4a4c01a + 2f20a50 commit b011a56

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

memory/database_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ func TestDatabase_AddTable(t *testing.T) {
1919
tables := db.Tables()
2020
require.Equal(0, len(tables))
2121

22-
var altDb sql.Alterable = db
23-
err := altDb.Create("test_table", nil)
22+
err := db.CreateTable(sql.NewEmptyContext(), "test_table", nil)
2423
require.NoError(err)
2524

2625
tables = db.Tables()
@@ -29,6 +28,6 @@ func TestDatabase_AddTable(t *testing.T) {
2928
require.True(ok)
3029
require.NotNil(tt)
3130

32-
err = altDb.Create("test_table", nil)
31+
err = db.CreateTable(sql.NewEmptyContext(), "test_table", nil)
3332
require.Error(err)
3433
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy