Clean up.
This commit is contained in:
parent
d5ba193551
commit
74725e8e11
3 changed files with 2 additions and 2 deletions
|
|
@ -165,7 +165,6 @@ func argToString(value interface{}) string {
|
|||
|
||||
func integerTypesToString(value interface{}) string {
|
||||
switch bindVal := value.(type) {
|
||||
case bool:
|
||||
case int:
|
||||
return strconv.FormatInt(int64(bindVal), 10)
|
||||
case uint:
|
||||
|
|
|
|||
|
|
@ -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([]string{"str"})), false)
|
||||
assert.Equal(t, isSimpleModelType(reflect.TypeOf([]int{1, 2})), false)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ RETURNING link.id AS "link.id",
|
|||
link.name AS "link.name",
|
||||
link.description AS "link.description";
|
||||
`
|
||||
Link.ID.Name()
|
||||
insertQuery := Link.INSERT(Link.ID, Link.URL, Link.Name, Link.Description).
|
||||
VALUES(100, "http://www.postgresqltutorial.com", "PostgreSQL Tutorial", DEFAULT).
|
||||
VALUES(101, "http://www.google.com", "Google", DEFAULT).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue