xormplus 9 years ago
parent
commit
84ce6042c0
1 changed files with 10 additions and 0 deletions
  1. 10 0
      test/xorm_test.go

+ 10 - 0
test/xorm_test.go

@@ -469,3 +469,13 @@ func Test_SqlTemplateClient_Search_Json(t *testing.T) {
 
 	t.Log("[Test_SqlTemplateClient_Search_Json]->rows:\n", json)
 }
+
+func Test_Query(t *testing.T) {
+
+	result, err := db.Query("select * from category where id =25")
+	if err != nil {
+		t.Fatal(err)
+	}
+
+	t.Log("[Test_Query]->rows:\n", result)
+}