Cleanup leftover.
This commit is contained in:
parent
0643768673
commit
08e4392278
2 changed files with 0 additions and 32 deletions
|
|
@ -46,29 +46,6 @@ func (s *TableSuite) TestCInvalidLookup(c *gc.C) {
|
|||
c.Assert(err, gc.NotNil)
|
||||
}
|
||||
|
||||
func (s *TableSuite) TestValidForcedIndex(c *gc.C) {
|
||||
t := table1.ForceIndex("foo")
|
||||
buf := &bytes.Buffer{}
|
||||
err := t.SerializeSql(buf)
|
||||
c.Assert(err, gc.IsNil)
|
||||
sql := buf.String()
|
||||
c.Assert(sql, gc.Equals, "db.table1 FORCE INDEX (foo)")
|
||||
|
||||
// Ensure the original tableName is unchanged
|
||||
buf = &bytes.Buffer{}
|
||||
err = table1.SerializeSql(buf)
|
||||
c.Assert(err, gc.IsNil)
|
||||
sql = buf.String()
|
||||
c.Assert(sql, gc.Equals, "db.table1")
|
||||
}
|
||||
|
||||
func (s *TableSuite) TestInvalidForcedIndex(c *gc.C) {
|
||||
t := table1.ForceIndex("foo\x00")
|
||||
buf := &bytes.Buffer{}
|
||||
err := t.SerializeSql(buf)
|
||||
c.Assert(err, gc.NotNil)
|
||||
}
|
||||
|
||||
func (s *TableSuite) TestJoinNilLeftTable(c *gc.C) {
|
||||
join := InnerJoinOn(nil, table2, EqL(table2Col3, 123))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue