Skip to content

Commit

Permalink
test: add other fields to duplicate type, because of some kind of que…
Browse files Browse the repository at this point in the history
…ry builder cache
  • Loading branch information
zepatrik authored and aeneasr committed Apr 21, 2022
1 parent 1dad15a commit d60e1cf
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
@@ -1,4 +1,4 @@
version: '2'
version: '2.1'

services:
mysql:
Expand All @@ -25,7 +25,7 @@ services:
- ./sqldumps:/docker-entrypoint-initdb.d
cockroach:
image: cockroachdb/cockroach:v20.2.4
user: ${CURRENT_UID:?"Please run as follows 'CURRENT_UID=$(id -u):$(id -g) docker-compose up'"}
user: ${CURRENT_UID:?"Please run as follows 'CURRENT_UID=$$(id -u):$$(id -g) docker-compose up'"}
ports:
- "26257:26257"
volumes:
Expand Down
32 changes: 22 additions & 10 deletions executors_test.go
Expand Up @@ -1245,11 +1245,17 @@ func Test_Eager_Embedded_Struct(t *testing.T) {
}

type User struct {
ID int `db:"id"`
UserName string `db:"user_name"`
Name nulls.String `db:"name"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
ID int `db:"id"`
UserName string `db:"user_name"`
Email string `db:"email"`
Name nulls.String `db:"name"`
Alive nulls.Bool `db:"alive"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
BirthDate nulls.Time `db:"birth_date"`
Bio nulls.String `db:"bio"`
Price nulls.Float64 `db:"price"`
FullName nulls.String `db:"full_name" select:"name as full_name"`

AssocFields
}
Expand Down Expand Up @@ -1311,11 +1317,17 @@ func Test_Eager_Embedded_Ptr_Struct(t *testing.T) {
}

type User struct {
ID int `db:"id"`
UserName string `db:"user_name"`
Name nulls.String `db:"name"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
ID int `db:"id"`
UserName string `db:"user_name"`
Email string `db:"email"`
Name nulls.String `db:"name"`
Alive nulls.Bool `db:"alive"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
BirthDate nulls.Time `db:"birth_date"`
Bio nulls.String `db:"bio"`
Price nulls.Float64 `db:"price"`
FullName nulls.String `db:"full_name" select:"name as full_name"`

*AssocFields
}
Expand Down

0 comments on commit d60e1cf

Please sign in to comment.