Clean up.

This commit is contained in:
go-jet 2019-12-14 18:32:40 +01:00
parent d5ba193551
commit 74725e8e11
3 changed files with 2 additions and 2 deletions

View file

@ -165,7 +165,6 @@ func argToString(value interface{}) string {
func integerTypesToString(value interface{}) string { func integerTypesToString(value interface{}) string {
switch bindVal := value.(type) { switch bindVal := value.(type) {
case bool:
case int: case int:
return strconv.FormatInt(int64(bindVal), 10) return strconv.FormatInt(int64(bindVal), 10)
case uint: case uint:

View file

@ -32,4 +32,6 @@ func TestIsSimpleModelType(t *testing.T) {
assert.Equal(t, isSimpleModelType(reflect.TypeOf(complexModelType)), false) assert.Equal(t, isSimpleModelType(reflect.TypeOf(complexModelType)), false)
assert.Equal(t, isSimpleModelType(reflect.TypeOf(&complexModelType)), false) assert.Equal(t, isSimpleModelType(reflect.TypeOf(&complexModelType)), false)
assert.Equal(t, isSimpleModelType(reflect.TypeOf([]string{"str"})), false)
assert.Equal(t, isSimpleModelType(reflect.TypeOf([]int{1, 2})), false)
} }

View file

@ -24,7 +24,6 @@ RETURNING link.id AS "link.id",
link.name AS "link.name", link.name AS "link.name",
link.description AS "link.description"; link.description AS "link.description";
` `
Link.ID.Name()
insertQuery := Link.INSERT(Link.ID, Link.URL, Link.Name, Link.Description). insertQuery := Link.INSERT(Link.ID, Link.URL, Link.Name, Link.Description).
VALUES(100, "http://www.postgresqltutorial.com", "PostgreSQL Tutorial", DEFAULT). VALUES(100, "http://www.postgresqltutorial.com", "PostgreSQL Tutorial", DEFAULT).
VALUES(101, "http://www.google.com", "Google", DEFAULT). VALUES(101, "http://www.google.com", "Google", DEFAULT).