TOraTimeStamp Constructor Problem

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Oliver

TOraTimeStamp Constructor Problem

Post by Oliver » Wed 26 Oct 2005 11:40

Hello,

i have the following problem:

Code: Select all

      TOraTimeStamp *timestamp = new TOraTimeStamp(OCI_DTYPE_TIMESTAMP);

      timestamp->Format = "YYYY.MM.DD hh24:mi:ss";
      timestamp->AsString = DlgMain->TMStringGrid->Cells[4][DlgMain->m_iHitRow];
why isn't this working? i'm using the latest odac version and borland c++ 6
when the constructor is called, the error message appears:

Assertion failure (D:\Projects\Delphi\Odac\Source\OraClasses.pas, Zeile 10732)

Alex
Posts: 655
Joined: Mon 08 Nov 2004 08:39

Post by Alex » Thu 27 Oct 2005 08:09

You should use dtTimeStamp constant instead of OCI_DTYPE_TIMESTAMP.

Post Reply