rzo1 opened a new pull request, #157:
URL: https://github.com/apache/openjpa/pull/157

   Fixes [OPENJPA-2966](https://issues.apache.org/jira/browse/OPENJPA-2966): 
casting to `long` used the DDL `decimalTypeName`, which is `DECIMAL(10,0)` on 
MySQL/MariaDB and silently clamps any value past ten billion. Long casts now go 
through a new `longCastTypeName`, resolved lazily from `bigintTypeName` (so 
per-dictionary overrides assigned in constructors or `connectedConfiguration()` 
are picked up) and set to `SIGNED` in `MySQLDictionary` and 
`MariaDBDictionary`; no DDL type name is touched, so schema generation is 
unchanged. The second half of the report is fixed too: `TypecastAsNumber` and 
`TypecastAsString` now share the size-suffix stripping via `DBDictionary`, 
which changes exactly one dictionary's output (FoxPro no longer emits the 
literal `CAST(x AS CHARACTER{0})`).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to