-
-
Notifications
You must be signed in to change notification settings - Fork 267
Add API method Util::convert #8761
Copy link
Copy link
Labels
fix-version: 4.0.7fix-version: 5.0.4fix-version: 6.0 Alpha 1qa: cannot be testedrlsnotes60: noIntentionally not added to the Firebird 6.0 release notes.Intentionally not added to the Firebird 6.0 release notes.type: new feature
Metadata
Metadata
Assignees
Labels
fix-version: 4.0.7fix-version: 5.0.4fix-version: 6.0 Alpha 1qa: cannot be testedrlsnotes60: noIntentionally not added to the Firebird 6.0 release notes.Intentionally not added to the Firebird 6.0 release notes.type: new feature
It's very difficult for client libraries to implement conversion of types in the same manner as implemented internally by Firebird (client
or engine). There are many complexities like conversion of floating point types and integral scaled ones, for example.
It's not sufficient to let client change message field types and let Firebird do it.
Usually, libraries have methods like
getInt,getString, etc for individual columns and nobody can anticipate what the developer is goingto call. The same for setters.
Therefore I propose new utility function:
It will be very raw, as anyone that can already read/write data to messages can use this function with buffers and read/write data to it.
It will be thin wrapper for a CVT_move call. It should not work for blobs.