Here's what needs to be done:

1) /reactor/core/field.cfc has to be edited to add variables.precision and a
get/setter methods

2) the three Daos in /reactor/data/{dbms}/ need to be updated so that the
readFields method correctly populates the new field in field.cfc.

3) the /reactor/xsl/metadata.project.xsl will need to be updated so that the
precision is generated with the rest of the field metadata.

4) the /reactor/base/abstractGateway.cfc will need to be updated so that the
getByQuery method will add the scale attribute is set to the value in the
object's metadata.

Anyone want to give this a shot?  I'd really appreciate it!

Doug

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Porter,
Benjamin L.
Sent: Monday, February 20, 2006 5:25 PM
To: '[email protected]'
Subject: RE: Reactor For CF Numeric datatype problems

Exactly. If you do not set the scale it rounds a decimal to the integer
value. 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Doug
Hughes
Sent: Monday, February 20, 2006 4:17 PM
To: [email protected]
Subject: RE: Reactor For CF Numeric datatype problems

Why would I need the precision?  Is that the scale attribute on the
cfqueryparam tag?

Ugh.  

Doug

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sean
Corfield
Sent: Wednesday, February 08, 2006 8:14 PM
To: [email protected]
Subject: Re: Reactor For CF Numeric datatype problems

On 2/8/06, Michael Lantz <[EMAIL PROTECTED]> wrote:
> So, I am working on a project that includes the use of a Decimal datatype.
>
> When I look at the values in SQL Server Management Studio, the values 
> look fine, but when they are inside a Reactor object, the value gets 
> truncated
to
> an integer.

The length metadata field is, by definition, an integer. It appears that
Reactor needs to add an additional metadata field for precision or something
similar (and update the ObjectDao CFCs for each database).
--
Sean A Corfield -- http://corfield.org/
Got frameworks?

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood




-- Reactor for ColdFusion Mailing List -- [email protected] -- Archives
at http://www.mail-archive.com/reactor%40doughughes.net/

****************************************************************************

This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 
****************************************************************************



-- Reactor for ColdFusion Mailing List -- [email protected] -- Archives
at http://www.mail-archive.com/reactor%40doughughes.net/


 

-- Reactor for ColdFusion Mailing List -- [email protected]
-- Archives at http://www.mail-archive.com/reactor%40doughughes.net/


Reply via email to