﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>CapableObjects Forums / ECO / General discussions  / Problem with Decimal type with Firebird / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>CapableObjects Forums</description><link>http://www.capableobjects.com/apps/InstantForum414/</link><webMaster>forums@capableobjects.com</webMaster><lastBuildDate>Wed, 08 Feb 2012 22:43:24 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Problem with Decimal type with Firebird</title><link>http://www.capableobjects.com/apps/InstantForum414/Topic3521-4-1.aspx</link><description>I see. When we reverse-engineer a database we try to match each column with a persistencemapper that would result in the exact same column definition, but if we can't find one of those we use a generic mapper that just passes the dotnet value of the attribute directly down to the database with no conversion at all (except for null - DBNull.Value). This generic mapper doesn't know what columntype to use, so it is not possible to create the schema again. &lt;br&gt;&lt;br&gt;One solution would be to store the verbatim column type in a tagged value for the columns that dont get an explicit mapper...&lt;br&gt;&lt;br&gt;The forum doesn't correctly quote the character "&amp;lt;", so you need to write "&amp;amp;lt;". "&gt;" works fine as long as you don't have any "&amp;lt;" before it.&lt;br&gt;&lt;br&gt;</description><pubDate>Wed, 03 Jun 2009 17:10:02 GMT</pubDate><dc:creator>Jonas Hogstrom</dc:creator></item><item><title>RE: Problem with Decimal type with Firebird</title><link>http://www.capableobjects.com/apps/InstantForum414/Topic3521-4-1.aspx</link><description>I just noticed that in my original posting there was something missing.  There was something appearing where the data type should be.  It was:  "TOTAL_AMOUNT_DUE" &lt; UNKNOWN &gt;.</description><pubDate>Wed, 03 Jun 2009 16:06:00 GMT</pubDate><dc:creator>danielrail</dc:creator></item><item><title>RE: Problem with Decimal type with Firebird</title><link>http://www.capableobjects.com/apps/InstantForum414/Topic3521-4-1.aspx</link><description>The problem was that the table was reverse engineered and instead of using &lt;Default&gt; for the PersistenceMapper property, it was using GenericAttributeMapper.  The same thing happened for the database fields that where defined as a Date type(Time and Timestamp fields were fine).</description><pubDate>Wed, 03 Jun 2009 15:58:18 GMT</pubDate><dc:creator>danielrail</dc:creator></item><item><title>RE: Problem with Decimal type with Firebird</title><link>http://www.capableobjects.com/apps/InstantForum414/Topic3521-4-1.aspx</link><description>What build are you using? I just tried on my machine and the default column type for a System.Decimal attribute is "DECIMAL(18,2)".&lt;br&gt;&lt;br&gt;I just posted a new ECO 5 build on the website, please see if it solves the problem.&lt;br&gt;</description><pubDate>Wed, 03 Jun 2009 00:20:20 GMT</pubDate><dc:creator>Jonas Hogstrom</dc:creator></item><item><title>Problem with Decimal type with Firebird</title><link>http://www.capableobjects.com/apps/InstantForum414/Topic3521-4-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;I have an attribute declared as a Decimal type.  When I try the GenerateDB, I get an error.  &lt;br&gt;&lt;br&gt;Here's an example of the DDL that ECO is generating: &lt;br&gt;CREATE TABLE BillingItem (ECO_ID VARCHAR(32) NOT NULL, ECO_TYPE SMALLINT NOT NULL, "LINE_ITEM_NO" INTEGER DEFAULT 0, "TOTAL_AMOUNT_DUE" &lt;UNKNOWN&gt;, CONSTRAINT IX_PK_BillingItem PRIMARY KEY (ECO_ID))&lt;br&gt;&lt;br&gt;As you can see "TOTAL_AMOUNT_DUE" has a data type of &lt;UNKNOWN&gt;, but it's supposed to be a Decimal data type.&lt;br&gt;</description><pubDate>Tue, 02 Jun 2009 17:08:54 GMT</pubDate><dc:creator>danielrail</dc:creator></item></channel></rss>
