Exemple #1
0
func TestOffset(t *testing.T) {
	offset := nodes.Offset(1)
	expected := "OFFSET 1"
	if got, _ := sql.Accept(offset); expected != got {
		t.Errorf("TestOffset was expected to return %s, got %s", expected, got)
	}
}
Exemple #2
0
// Sets the Tree's Offset to the given integer.
func (self *SelectManager) Offset(skip int) *SelectManager {
	self.Tree.Offset = nodes.Offset(skip)
	return self
}