Subject | Re: [ib-support] moving dialect1 to 3 |
---|---|
Author | Ivan Prenosil |
Post date | 2003-05-20T15:06:36Z |
From: "Nick Upson" <uebridger@...>
InterBase60_MigrationGuide.pdf
ReleaseNotes.pdf
to help locate problematic spots in the database being moved.
It is all described in documentation.
Then cast the number to (fixed length) string and use substr function to separate
hours and minutes parts, then concatenate it together with colon as separator
to form correct time format. To solve the problem with left aligned numbers,
add some appropriate number first, so different parts of time are always
on the same position.
E.g. this works with Firebird (with InterBase you would need to replace SUBSTRING function by UDF):
UPDATE tat SET
t = SUBSTRING(CAST(i+10000 AS CHAR(5)) FROM 2 FOR 2) || ':' || SUBSTRING(CAST(i+10000 AS CHAR(5)) FROM 4 FOR 2);
Ivan Prenosil
[ I am looking for a job: InterBase - Firebird - Delphi - C - fulltext db - and more ... ]
Ivan.Prenosil@...
http://www.volny.cz/iprenosil/interbase
> Is there any documentation about doing this, I understand that the processThere are two documents available in IB6 Beta Documentation with useful informations:
> is just to backup/restore
> but I'm looking at other issues.
InterBase60_MigrationGuide.pdf
ReleaseNotes.pdf
> what testing methods have people used? What issues should I look out for?Database can't be of dialect 2. Dialect 2 is used only on client side
> what is the best way to use a dialect 2 database?
to help locate problematic spots in the database being moved.
It is all described in documentation.
> for example, without a time datatype, I've got several fields holding timeDo you mean e.g. number 1234 means 12 minutes and 34 seconds?
> in an int (the format is hhmm)
> once I've got a dialect 3 database I'd rather use the correct datatype but I
> can't see an easy way to switch over (maybe there isn't one)
Then cast the number to (fixed length) string and use substr function to separate
hours and minutes parts, then concatenate it together with colon as separator
to form correct time format. To solve the problem with left aligned numbers,
add some appropriate number first, so different parts of time are always
on the same position.
E.g. this works with Firebird (with InterBase you would need to replace SUBSTRING function by UDF):
UPDATE tat SET
t = SUBSTRING(CAST(i+10000 AS CHAR(5)) FROM 2 FOR 2) || ':' || SUBSTRING(CAST(i+10000 AS CHAR(5)) FROM 4 FOR 2);
Ivan Prenosil
[ I am looking for a job: InterBase - Firebird - Delphi - C - fulltext db - and more ... ]
Ivan.Prenosil@...
http://www.volny.cz/iprenosil/interbase