Browse Source

add primary key to smallint_table test

Sarah Brown 9 năm trước cách đây
mục cha
commit
f2fcb7e8aa
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      cassandra_test.go

+ 1 - 1
cassandra_test.go

@@ -768,7 +768,7 @@ func TestSmallInt(t *testing.T) {
 	session := createSession(t)
 	defer session.Close()
 	if err := createTable(session, `CREATE TABLE gocql_test.smallint_table (
-			testsmallint   smallint,
+			testsmallint  smallint PRIMARY KEY,
 		)`); err != nil {
 		t.Fatal("create table:", err)
 	}