Skip to content

Commit 586a9e9

Browse files
committed
Fix TestCustomizeColumn with quoted identifiers and mark TestJoinWithSoftDeleted as passed.
1 parent 44002c1 commit 586a9e9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/customize_field_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func TestCustomizeColumn(t *testing.T) {
6565
}
6666

6767
var cc1 CustomizeColumn
68-
DB.First(&cc1, "mapped_name = ?", "foo")
68+
DB.First(&cc1, "\"mapped_name\" = ?", "foo")
6969

7070
if cc1.Name != expected {
7171
t.Errorf("Failed to query CustomizeColumn")
@@ -75,7 +75,7 @@ func TestCustomizeColumn(t *testing.T) {
7575
DB.Save(&cc)
7676

7777
var cc2 CustomizeColumn
78-
DB.First(&cc2, "mapped_id = ?", 666)
78+
DB.First(&cc2, "\"mapped_id\" = ?", 666)
7979
if cc2.Name != "bar" {
8080
t.Errorf("Failed to query CustomizeColumn")
8181
}

tests/passed-tests.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ TestCreateWithAutoIncrementCompositeKey
6868
TestCreateOnConflictWithDefaultNull
6969
TestCreateFromMapWithoutPK
7070
TestCreateFromMapWithTable
71-
#TestCustomizeColumn
71+
TestCustomizeColumn
7272
TestCustomColumnAndIgnoredFieldClash
7373
TestCustomizeField
7474
TestDefaultValue
@@ -142,7 +142,7 @@ TestJoinOn
142142
TestJoinsWithSelect
143143
TestJoinWithOmit
144144
TestJoinCount
145-
#TestJoinWithSoftDeleted
145+
TestJoinWithSoftDeleted
146146
TestInnerJoins
147147
TestJoinWithSameColumnName
148148
TestJoinArgsWithDB

0 commit comments

Comments
 (0)