Sfoglia il codice sorgente

actually add testsmallint to the query

Sarah Brown 9 anni fa
parent
commit
99243588fd
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      cassandra_test.go

+ 1 - 0
cassandra_test.go

@@ -773,6 +773,7 @@ func TestSmallInt(t *testing.T) {
 		t.Fatal("create table:", err)
 	}
 	m := make(map[string]interface{})
+	m["testsmallint"] = int16(2)
 	sliceMap := []map[string]interface{}{m}
 	if err := session.Query(`INSERT INTO smallint_table (testsmallint) VALUES (?)`,
 		m["testsmallint"]).Exec(); err != nil {