If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Migrating 7.2x to 11.5

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-20-08, 09:00
obwan obwan is offline
Registered User
 
Join Date: Mar 2007
Posts: 25
Question Migrating 7.2x to 11.5

DATE is a 32 bit long integer (INT4 or 4 byte integer) in our 7.2 sun Box.

Informix ESQL/C on this platform is now returning it as type INT which on the new platform (Linus red Hat) 64 bit system should be a 64 bit field or “long long integer” INT follows the bit size of a machine register in the CPU normally. (32 bits on Ultrasparc)

One of our applications has this defined as a long integer (32 bit) all over the place, not as informix date all the time.
The developer who wrote it (now gone) freely interwove LONG and DATE in the code. (which means I essentially will be chopping 64 bit values in half………as I move “date” into long.

I am assuming that the data loads into the data base tables will be loading all these date type fields, (date, datetime, time) etc (defined as date or int4) now into 64 bit integer fields in the tables.

Will code references have to be changed accordlingly?
Reply With Quote
  #2 (permalink)  
Old 11-03-08, 14:59
caryw caryw is offline
Registered User
 
Join Date: Nov 2008
Posts: 1
Yes you will need to change your application from LONG to DATE, or keep the application running on a 32-bit Linux box with a remote connection.

Also you mentioned that ESQL/C was no returning as type INT. ESQL should never return as type INT, it should be more specific aka int8 or int4.

Hope this helps.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On