Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread RecordID should be illegal as a user-created column name
Thu, Apr 27 2006 8:13 PMPermanent Link

Oliver Bock
Using DBISAM v4.23b2, I can create a column called "RecordID".
Unfortunately I cannot get at the data in this column because DBISAM
supplies its own internal record ID.  I don't have a problem with that,
but perhaps DBISAM should not allow columns called "RecordID" to be
created by the user.  "RecordID" is not such an unlikely column name for
someone to choose, and this measure would save such twits as me a bit of
time.


  Oliver
Fri, Apr 28 2006 3:54 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Oliver,

<< Using DBISAM v4.23b2, I can create a column called "RecordID".
Unfortunately I cannot get at the data in this column because DBISAM
supplies its own internal record ID.  I don't have a problem with that, but
perhaps DBISAM should not allow columns called "RecordID" to be created by
the user.  "RecordID" is not such an unlikely column name for someone to
choose, and this measure would save such twits as me a bit of  time. >>

How are you creating the table ?  I tried the following and it raises an
error as expected:

CREATE Table Test (RecordID Integer);

--
Tim Young
Elevate Software
www.elevatesoft.com

Tue, May 2 2006 1:12 AMPermanent Link

Oliver Bock
Tim Young [Elevate Software] wrote:
> How are you creating the table ?  I tried the following and it raises an
> error as expected:
>
> CREATE Table Test (RecordID Integer);

I'm using the old SELECT ... INTO trick Smile

Now that I try it in DBSYS I can see that it is automatically renamed to
RecordID_1.  I suppose this is similar to writing

 select ID, ID
   into T2
   from T1

in which case I guess the SQL standard mandates an automatic column
rename rather than an error.  So, I suppose DBISAM is not being
unreasonable.


  Oliver
Tue, May 2 2006 1:49 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Oliver,

<< I'm using the old SELECT ... INTO trick Smile>>

Ahh. Smiley

<< Now that I try it in DBSYS I can see that it is automatically renamed to
RecordID_1.  I suppose this is similar to writing

 select ID, ID
   into T2
   from T1

in which case I guess the SQL standard mandates an automatic column rename
rather than an error.  So, I suppose DBISAM is not being unreasonable. >>

Correct, which means the SQL bug score is now:

Oliver:   200+
Elevate: 1

Smiley

Seriously though, you've been a big help in finding and squashing some
significant bugs that have gotten past us.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image