Explorar o código

add primary key to smallint_table test

Sarah Brown %!s(int64=9) %!d(string=hai) anos
pai
achega
f2fcb7e8aa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
 	}