🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.database
Article #298

Re: Database.setUseSpacePadding

#298
From: John Moore (TeamB)
Date: Sat, 24 Mar 2007 18:20
46 lines
2375 bytes
kei wrote:
> what is the effect of Database.setUseSpacePadding? if my application is 
> initially setUseSpacePadding = false and then setUseSpacePadding = true now, 
> any adverse effect on my data?
> I am using JBuilder X.
> 
> Thx!! 
> 
> 

This is from the source..

//       This property controls if a CHAR field should be space padded
//       or not.
//       The reason for doing so is to get around certain database
//       driver bugs.
//       (Oracle type 4 driver)
//
   public boolean isUseSpacePadding() { return 
getRuntimeMetaData().getBooleanValue(RuntimeMetaData.USE_SPACEPADDING); }
   public void setUseSpacePadding(boolean useSpacePadding) { 
getRuntimeMetaData().setBooleanValue(RuntimeMetaData.USE_SPACEPADDING,useSpacePadding); 
}

...it also shows up in the following exception error message

"The row specified by the resolution query was not found.\r\nTypical 
reasons are:\r\n     Somebody deleted or changed this row.\r\n     A 
floating point comparison failed to match.\r\n     A CHAR field needs 
space padding (see Database.setUseSpacePadding).\r\nQuery:\r\n  ",

Hope that helps..

John..





-- 
=============================================
TeamB are volunteer helpers.  Please DO NOT REPLY VIA EMAIL!
Post all questions and replies to this newsgroup ONLY
For papers on DataExpress, Applets, JSP, and Web Development go to:
http://www.microps.com/mps/paperFAQ.html
====================================================
Technical Details
Message-ID: <46056bf5$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <46011848$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1073da,363f379cc52f667f
X-Google-Attributes: gid1073da,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sat, 24 Mar 2007 11:20:39 -0700
From: "John Moore (TeamB)" <jbm@microps.com>
User-Agent: Thunderbird 1.5.0.10 (Macintosh/20070221)
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.database
Subject: Re: Database.setUseSpacePadding
References: <46011848$1@newsgroups.borland.com>
In-Reply-To: <46011848$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 207.137.13.178
Message-ID: <46056bf5$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1174760437 207.137.13.178 (24 Mar 2007 11:20:37 -0800)
Lines: 46
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail