瀏覽代碼

actually add testsmallint to the query

Sarah Brown 9 年之前
父節點
當前提交
99243588fd
共有 1 個文件被更改,包括 1 次插入0 次删除
  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 {