473,414 Members | 1,750 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

foreign key defs 390/v6 vs. 390/v7

it seems that it was allowed to define a foreign key to
a 4 character CHAR from an INTEGER under v6.

we have some ddl (SPUFI) which works ok on our v6.1 but
dies at a client running v7. error is -538.

nothing on this ng or APARS that i could find. seems odd.

robert
Nov 12 '05 #1
3 1480
"robert" <gn*****@rcn.com> wrote in message
news:da**************************@posting.google.c om...
it seems that it was allowed to define a foreign key to
a 4 character CHAR from an INTEGER under v6.

we have some ddl (SPUFI) which works ok on our v6.1 but
dies at a client running v7. error is -538.

nothing on this ng or APARS that i could find. seems odd.

robert


That sounds like a bug that was fixed, and not a problem with version 7.

BTW, if your foreign key is integer and the primary key on the parent table
is char(4) (or other way around, not sure what you mean), then your DBA or
database designer should be shot (but tortured first).
Nov 12 '05 #2
"Mark A" <ma@switchboard.net> wrote in message news:<%3*****************@news.uswest.net>...
"robert" <gn*****@rcn.com> wrote in message
news:da**************************@posting.google.c om...
it seems that it was allowed to define a foreign key to
a 4 character CHAR from an INTEGER under v6.

we have some ddl (SPUFI) which works ok on our v6.1 but
dies at a client running v7. error is -538.

nothing on this ng or APARS that i could find. seems odd.

robert


That sounds like a bug that was fixed, and not a problem with version 7.

BTW, if your foreign key is integer and the primary key on the parent table
is char(4) (or other way around, not sure what you mean), then your DBA or
database designer should be shot (but tortured first).


yeah, i view it as a v6 bug. i was told "don't know why it doesn't work,
we ran the SPUFI just fine". love that word, SPUFI. but when your life
revolves around REDEFINES, and DB2 (pretty obviously) is coercing a 32 bit
thingee into another 32 bit thingee while your not looking; life is bliss.
i don't think they'd feel the thumbscrews <G>
Nov 12 '05 #3
> > That sounds like a bug that was fixed, and not a problem with version 7.

BTW, if your foreign key is integer and the primary key on the parent table is char(4) (or other way around, not sure what you mean), then your DBA or database designer should be shot (but tortured first).


yeah, i view it as a v6 bug. i was told "don't know why it doesn't work,
we ran the SPUFI just fine". love that word, SPUFI. but when your life
revolves around REDEFINES, and DB2 (pretty obviously) is coercing a 32 bit
thingee into another 32 bit thingee while your not looking; life is bliss.
i don't think they'd feel the thumbscrews <G>


SPUFI - SQL Processing Using File Input.
Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jeremiah Jacks | last post by:
I just upgraded to MySQL 4.0.14-standard for RedHat Linux and am using = the pre-compiled binaries. I have a database with INNODB tables. When I insert a row into one of the child tables, I get...
2
by: geoff | last post by:
The table creation script(at the end of this post) works fine on 4.0.1-alpha-win, but the foreign key constraints fail on 4.0.15-win. I am starting the server with the same command for both...
10
by: Bodza Bodza | last post by:
I'm having an argument with an incumbent self-taught programmer that it is OK to use null foreign keys in database design. My take is the whole point of a foreign key is that it's not supposed...
31
by: Robert Brown | last post by:
Let's say I have a type hierarchy: (just an example) the general entity customer: CREATE TABLE customer(customer_id int, customer_name varchar(250), customer_type int) three specific...
0
by: Scott Ribe | last post by:
I've got a problem which I think may be a bug in Postgres, but I wonder if I'm missing something. Two tables, A & B have foreign key relations to each other. A 3rd table C, inherits from A. A...
3
by: Karl Irvin | last post by:
Can you loop through Query Defs and get the name of the tables/queries used in each query?
2
by: G Patel | last post by:
aan anyone tell me what a .defs and .s file extensions are in a C program (folder)? thanks a lot
1
by: Benjamin Smith | last post by:
We have a list of customers, some of whom have purchased feature X and some of whom have not. If a customer has paid for featurex, they can use it, and a strict relationship between...
2
by: parag_paul | last post by:
Isnt is so that whenever the compiler reads an #def it will replace it with letter by letter on the place is see the macro, so what is the purpose of keeping #defs inside a structure, struct...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.