Thread View: borland.public.jbuilder.database
2 messages
2 total messages
Started by kei
Wed, 21 Mar 2007 11:34
Database.setUseSpacePadding
Author: kei
Date: Wed, 21 Mar 2007 11:34
Date: Wed, 21 Mar 2007 11:34
6 lines
1070 bytes
1070 bytes
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!!
Re: Database.setUseSpacePadding
Author: John Moore (TeamB)
Date: Sat, 24 Mar 2007 18:20
Date: Sat, 24 Mar 2007 18:20
46 lines
2375 bytes
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
====================================================
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads