Преглед изворни кода

add primary key to smallint_table test

Sarah Brown пре 9 година
родитељ
комит
f2fcb7e8aa
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      cassandra_test.go

+ 1 - 1
cassandra_test.go

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