Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread Truncating overlength string fields
Wed, Jun 25 2008 3:39 PMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim

I may well regret this but I thought ElevateDB was going to issue an exception when you tried to assign a string longer than a varchar field? As of b2 it isn't (eg 100 characters to a VARCHAR(50) is trincated to 50)..

Personally I think this is the right way but from an earlier thread

Message-ID: <D8EF3EFA-CA17-496B-BBA7-0FBEB2B3C7BC@news.elevatesoft.com>

you indicated it wasn't.

I've tested in both SQL & Delphi

Roy Lambert
Thu, Jun 26 2008 10:52 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< I may well regret this but I thought ElevateDB was going to issue an
exception when you tried to assign a string longer than a varchar field? As
of b2 it isn't (eg 100 characters to a VARCHAR(50) is trincated to 50).. >>

What type of SQL statement are you using - INSERT or UPDATE ?

Delphi code won't issue an exception because the common TField code
truncates the length prior to the data getting to the ElevateDB engine.

--
Tim Young
Elevate Software
www.elevatesoft.com

Thu, Jun 26 2008 11:07 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim


UPDATE, and I remembered about the TDataset thing after I'd posted. It was in the original thread.

Roy Lambert
Thu, Jun 26 2008 1:12 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< UPDATE, and I remembered about the TDataset thing after I'd posted. It
was in the original thread. >>

Yep, it got turned off somehow.

--
Tim Young
Elevate Software
www.elevatesoft.com

Thu, Jun 26 2008 1:41 PMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim


I should have kept quiet and just hoped Smiley

Roy Lambert
Image