Print Thread
What's the idea behind OracleToDelphiData() function?
#62750 11/10/21 04:44 PM
Joined: Feb 2018
Posts: 16
M
Member
OP Offline
Member
M
Joined: Feb 2018
Posts: 16
This is an extract from OracleToDelphiData, found in Oracle.pas.

Code
    otInteger,
     otCursor,
       otCLOB,
       otBLOB,
      otBFile,
  otReference,
     otObject : begin
                  L := PLongInt(buf)^;
                  Result := L;
                end;

In case of otInteger this makes sense, assuming that the variable value is fixed 32-bit signed integer.

In case of the other types, the buffer is a pointer. The dereference operation will just take 4 bytes of whatever is at the memory location and interpret it as an integer. This value cannot be used to find where it came from.

Why are you doing this for all the object types?

Last edited by Matt Ors; 11/10/21 04:45 PM.
Re: What's the idea behind OracleToDelphiData() function?
Matt Ors #62751 11/11/21 10:12 AM
Joined: Aug 1999
Posts: 21,665
Member
Offline
Member
Joined: Aug 1999
Posts: 21,665
This is an internal function that is not publicly documented.


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4