Skip to content

Fix: Use DB::raw() in performInsert/performUpdate to force PostgreSQL…#156

Merged
y9min merged 1 commit intomainfrom
fix/vehicle-group-checkbox
Nov 4, 2025
Merged

Fix: Use DB::raw() in performInsert/performUpdate to force PostgreSQL…#156
y9min merged 1 commit intomainfrom
fix/vehicle-group-checkbox

Conversation

@y9min
Copy link
Copy Markdown
Owner

@y9min y9min commented Nov 4, 2025

… boolean

  • Modify performInsert to use DB::raw('TRUE'/'FALSE') instead of boolean
  • Modify performUpdate to use DB::raw('TRUE'/'FALSE') instead of boolean
  • This bypasses PDO's automatic conversion of booleans to integers
  • PostgreSQL will now receive proper boolean literals TRUE/FALSE

… boolean

- Modify performInsert to use DB::raw('TRUE'/'FALSE') instead of boolean
- Modify performUpdate to use DB::raw('TRUE'/'FALSE') instead of boolean
- This bypasses PDO's automatic conversion of booleans to integers
- PostgreSQL will now receive proper boolean literals TRUE/FALSE
@y9min y9min merged commit 4556c01 into main Nov 4, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant