-
-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cast to integer to avoid Spanner GCP incompatibility (#1060)
* Cast to integer to avoid Spanner GCP incompatibility I am currently receiving error from GCP when trying to persist data using Spanner: ``` An exception occurred while executing 'INSERT INTO doctrine_migration_versions (version, executed_at, execution_time) VALUES (?, ?, ?)' with params ["oat\\generis\\migrations\\Version202009301828472348_generis", "2020-10-02T11:54:13.671062Z", 130]: { "message": "Invalid value for bind parameter param3: Expected INT64.", "code": 3, "status": "INVALID_ARGUMENT", "details": [ { "@type": "grpc-server-stats-bin", "data": "<Unknown Binary Data>" } ] } ``` Cause the 130 is actually `130.0` (a float). Since migrations always expects an integer here I would like to cast this value to avoid driver incompatibilities
- Loading branch information
1 parent
a86953f
commit 5a7295f
Showing
2 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters