[Zeos 8.0] Error in Oracle Utils

The offical for ZeosLib 7.3 Report problems, ask for help, post proposals for the new version of Zeoslib 7.3/v8
Quick Info:
-We made two new drivers: odbc(raw and unicode version) and oledb
-GUID domain/field-defined support for FB
-extended error infos of Firebird
-performance ups are still in queue
In future some more feature will arrive, so stay tuned and don't hassitate to help
Post Reply
Dee
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 20.09.2019, 13:42

[Zeos 8.0] Error in Oracle Utils

Post by Dee »

Looks like an error in
procedure TZOraProcDescriptor_W.InternalDescribeObject(Obj: POCIHandle);

Param.Scale is not set before call to NormalizeOracleTypeToSQLType. (ZDbcOracleUtils.pas, line 2298)

Code: Select all

        if Param.DataType <> SQLT_CLOB then
          Param.Precision := Param.GetUb2(OCI_ATTR_CHAR_SIZE);
        Param.csform := Param.GetUb1(OCI_ATTR_CHARSET_FORM);
        Param.Scale := Param.csform; <<------------------------------------------ add this to fix
      end;
      Param.SQLType := NormalizeOracleTypeToSQLType(Param.DataType, Param.DataSize,
        Param.DescriptorType, Param.Precision, Param.Scale, ConSettings);
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1918
Joined: 17.01.2011, 14:17

Re: [Zeos 8.0] Error in Oracle Utils

Post by marsupilami »

Hello Dee,

thank you for the fix. We applied the patch. Could you describe the circumstances where this fixes a problem? We would like to include a test case for this in our test suite.

With best regards,

Jan
Post Reply