Open Venefilyn opened 4 years ago
This issue has been automatically marked as stale because it has been open for 7 days without activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment or remove the "stale" label. 🙂
This issue has been automatically marked as stale because it has been open for 14 days without activity. It will be closed if no further activity occurs within the next 14 days. If this is still an issue, just leave a comment or remove the "stale" label. 🙂
Can this be reopened? Shouldn't MariaDB behave like Postgres, where bigints are returned as strings.
This issue has been automatically marked as stale because it has been open for 14 days without activity. It will be closed if no further activity occurs within the next 14 days. If this is still an issue, just leave a comment or remove the "stale" label. 🙂
Just had the same issue, except changing the driver (which isn't ideal, as you mentioned), is there any solution that manually applying .toString()
to all the BIGINT fields?
Issue Description
Accessing a BigInt Unsigned field with mariadb driver will not display the value, instead it will display a Long object with
low
,high
, andunsigned
fields.Changing to MySQL driver works, but not ideal given the changes between MySQL and MariaDB
What are you doing?
Accessing a BigInt
What do you expect to happen?
It outputs the value of the BigInt
What is actually happening?
It outputs the object's properties
Additional context
This means serializing to JSON does not work as intended.
Environment
5.21.13
v12.14.1
Issue Template Checklist
How does this problem relate to dialects?
mariadb
Would you be willing to resolve this issue by submitting a Pull Request?