Esempio n. 1
0
func TestUnqualifiedColumn(t *testing.T) {
	column := nodes.UnqualifiedColumn("column")
	expected := `"column"`
	if got, _ := sql.Accept(column); expected != got {
		t.Errorf("TestUnqualifiedColumn was expected to return %s, got %s", expected, got)
	}
}
Esempio n. 2
0
// Set appends to the trees Values slice a list of UnqualifiedColumnNodes
// which are to be modified in the query.
func (self *UpdateManager) Set(columns ...interface{}) *UpdateManager {
	for _, column := range columns {
		self.Tree.Values = append(self.Tree.Values, nodes.UnqualifiedColumn(column))
	}
	return self
}