Version
1.31.1
What happened?
Breaking change when updating from v1.30.0 to v1.31.1
Is this intentional or a bug?
Relevant log output
go run ./cmd/prebuild
# github.com/enydyne/app/internal/db
internal/db/category.go:71:19: invalid operation: exists == 1 (mismatched types bool and untyped int)
internal/db/gallery.go:64:19: invalid operation: exists == 1 (mismatched types bool and untyped int)
internal/db/order.go:283:17: invalid operation: exists == 1 (mismatched types bool and untyped int)
internal/db/order.go:378:19: invalid operation: exists == 1 (mismatched types bool and untyped int)
internal/db/restaurant.go:280:19: invalid operation: exists == 1 (mismatched types bool and untyped int)
internal/db/restaurant.go:291:16: invalid operation: exists == 1 (mismatched types bool and untyped int)
internal/db/restaurant.go:504:19: invalid operation: exists == 1 (mismatched types bool and untyped int)
internal/db/sub_category.go:70:19: invalid operation: exists == 1 (mismatched types bool and untyped int)
internal/db/user.go:203:19: invalid operation: exists == 1 (mismatched types bool and untyped int)
Database schema
SQL queries
Configuration
Playground URL
No response
What operating system are you using?
macOS
What database engines are you using?
SQLite
What type of code are you generating?
Go
Version
1.31.1
What happened?
Breaking change when updating from v1.30.0 to v1.31.1
Is this intentional or a bug?
Relevant log output
go run ./cmd/prebuild # github.com/enydyne/app/internal/db internal/db/category.go:71:19: invalid operation: exists == 1 (mismatched types bool and untyped int) internal/db/gallery.go:64:19: invalid operation: exists == 1 (mismatched types bool and untyped int) internal/db/order.go:283:17: invalid operation: exists == 1 (mismatched types bool and untyped int) internal/db/order.go:378:19: invalid operation: exists == 1 (mismatched types bool and untyped int) internal/db/restaurant.go:280:19: invalid operation: exists == 1 (mismatched types bool and untyped int) internal/db/restaurant.go:291:16: invalid operation: exists == 1 (mismatched types bool and untyped int) internal/db/restaurant.go:504:19: invalid operation: exists == 1 (mismatched types bool and untyped int) internal/db/sub_category.go:70:19: invalid operation: exists == 1 (mismatched types bool and untyped int) internal/db/user.go:203:19: invalid operation: exists == 1 (mismatched types bool and untyped int)Database schema
SQL queries
Configuration
Playground URL
No response
What operating system are you using?
macOS
What database engines are you using?
SQLite
What type of code are you generating?
Go