Add LOCK table support.

This commit is contained in:
zer0sub 2019-05-07 13:44:30 +02:00
parent dd9b815dbb
commit c9561ecc37
8 changed files with 142 additions and 116 deletions

View file

@ -1,7 +1,6 @@
package sqlbuilder
import (
"fmt"
"gotest.tools/assert"
"testing"
)
@ -15,14 +14,11 @@ func TestUnionNoSelect(t *testing.T) {
}
func TestUnionOneSelect(t *testing.T) {
query, args, err := UNION(
_, _, err := UNION(
table1.SELECT(table1Col1),
).Sql()
assert.Assert(t, err != nil)
fmt.Println(err.Error())
fmt.Println(query)
fmt.Println(args)
}
func TestUnionTwoSelect(t *testing.T) {