<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://dev.helma.org/bugs/bugzilla.dtd">

<bugzilla version="3.2.2"
          urlbase="http://dev.helma.org/bugs/"
          maintainer="hannes@helma.at"
>

    <bug>
          <bug_id>569</bug_id>
          
          <creation_ts>2007-11-13 11:19</creation_ts>
          <short_desc>asgning a number to a property mapped to a characater/varchar/character varying column leads to a strange result</short_desc>
          <delta_ts>2007-12-11 11:53:15</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Helma</product>
          <component>HopObject Functionality</component>
          <version>1.6.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          
          
          <priority>P3</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rainer">rainer.rynesch@manova.at</reporter>
          <assigned_to name="Helma Developer Mailing List">helma-dev@helma.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who name="Rainer">rainer.rynesch@manova.at</who>
            <bug_when>2007-11-13 11:19:43</bug_when>
            <thetext>1.  What you were trying to do
assign a number value (1) to a property of a mapped HopObject (property mapped to a column with datatype character varying) 
   2. The (buggy) result you got
1.0 is inserted
   3. The result you were expecting
no period etc. should be inserted when the number is an integer (&quot;ganzzahl&quot;) -&gt; 1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Hannes Wallnoefer">hannes@helma.at</who>
            <bug_when>2007-12-11 11:53:15</bug_when>
            <thetext>Rhino keeps numbers internally as floating point numbers, and only converts to integers at runtime. The only way to fix this in Helma would be to invoke org.mozilla.javascript.ScriptRuntime.toString() in helma.objectmodel.db.NodeManager when setting a string column, which is pretty much out of question.

I suggest you fix this by converting to string when assigning the property. Marking as WONTFIX.</thetext>
          </long_desc>
      
      

    </bug>

</bugzilla>