Arí Ricardo Ody wrote:
If you think carefully you'll conclude that there is only one type of TIMESTAMP: day, month, year, hours, minutes, seconds and 1/1e6 of seconds. All other types are derived from this format, the complete TIMESTAMP format.

Or in a different order :-), YYYYMMDDHHNNSS for instance.

> UpdateIndexDefs? What is the function of such
> method? Since data base manager ever keep the

To let modifications things work automatically, it is needed. This
function updates the information about the indexes on the table. From

I insist: management of indexes, primary keys, etc. are function of database manager. It administrates indexes, keys(primary and others),

It retrieves descriptive information from RDBMS -> FCL TIndexDefs. That's all.

I'm not sure about that. The developer is asking for a Date/time, so
he'll expect that he'll get a Date/time.
If you need a string from DB2, I would use a cast in the sql-statement.

I'm sure that if TIMESTAMP returns a string [26] any programmer can edit and transform this string as needed.

If a developer is asking for a date/time format is easy: Convert it to date/time.

You can treat these fields as you want. I suggest a string [26] because it seems to be more simple(I confess I have no idea how the interface is

Well, both are possible too. GetFieldData is flexible enough to convert to requested type (because it passes the requested type as parameter). So if you define in the Fields editor (Delphi-only?) as TStringField, you get 26 characters, if you define as TDateTimeField, you get as TDateTime.

Micha

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to