--- In [email protected], "Charlie Hubbard" 
<[EMAIL PROTECTED]> wrote:
>
> I've read over all of the docs on Air, but there seems to be a missing
> discussion around NULL values in SQLLite and how those map back to
> datatypes.  What I've found is that if I have an int field type I 
can't get
> a NULL value to ever get inserted into the SQLLite.  It just ends up
> inserting 0 (zero).  In Java we'd just convert to using a true Object 
like
> Integer class, and that would handle this problem for us.  What is the
> equivalent with Actionscript?  If you want NULLs and numbers what is 
an
> object and a number, and will Air convert between the two correctly?

I don't believe null is an acceptable value for an int in Actionscript 
3, so as long as you're using an int datatype, you'll have to check for 
maybe undefined or something and insert null vs. the actual variable 
value. Check the docs for the specifics of what the "empty" value is 
for int.

HTH;

Amy

Reply via email to