You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the mapping below with the formula property, to perform a CAST on a field in a DB2 database. However, when the command is generated, it is invalid because it is including the alias incorrectly as shown below.
Map(c => c.wdesc).CustomType().Formula("CAST(wdesc as VARCHAR(30) CCSID 37)").Length(30).Not.Nullable()
Same error
Map(c => c.wdesc).Formula("CAST(wdesc as VARCHAR(30) CCSID 37)").Length(30).Not.Nullable()
Field with command error
(CAST(ilm4_.wdesc as VARCHAR(30) ilm4_.CCSID 37))
The alias is being inserted in the CCSID and is not necessary in these cast cases
For working correct
(CAST(ilm4_.wdesc as VARCHAR(30) CCSID 37))
I'm using the latest versions of hibernate and fluence hibernate , and I tested with older versions and the same error occurs.
The text was updated successfully, but these errors were encountered:
I am using the mapping below with the formula property, to perform a CAST on a field in a DB2 database. However, when the command is generated, it is invalid because it is including the alias incorrectly as shown below.
Map(c => c.wdesc).CustomType().Formula("CAST(wdesc as VARCHAR(30) CCSID 37)").Length(30).Not.Nullable()
Same error
Map(c => c.wdesc).Formula("CAST(wdesc as VARCHAR(30) CCSID 37)").Length(30).Not.Nullable()
Field with command error
(CAST(ilm4_.wdesc as VARCHAR(30) ilm4_.CCSID 37))
The alias is being inserted in the CCSID and is not necessary in these cast cases
For working correct
(CAST(ilm4_.wdesc as VARCHAR(30) CCSID 37))
I'm using the latest versions of hibernate and fluence hibernate , and I tested with older versions and the same error occurs.
The text was updated successfully, but these errors were encountered: