Skip to Content.
Sympa Menu

freetds - Re: How to handle Java long data type? (BIGINT)

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: trac phan <tracphan AT yahoo.com>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: How to handle Java long data type? (BIGINT)
  • Date: Thu, 21 Mar 2002 08:17:36 -0800 (PST)


I tried what you suggested and it works most of the
time, but converting from long to double will loose
some of its significant bits therefore the result is
wrong sometimes. Any other ideas?

Thanks

--- Rafel Puchades <RPuchadM AT cfp.upv.es> wrote:
> try to convert the bigint to a double
> and use setDouble from preparedStatement
>
> it will maybe be enough
>
> >How do store a long data type to the database using
> FreeTDS? I defined a
> >column as NUMERIC(19, 0) but I can't insert any
> data into it.
> >Thanks in advanced.
>
>
>
>
>
> ---
> You are currently subscribed to freetds as:
> [tracphan AT yahoo.com]
> To unsubscribe, forward this message to
$subst('Email.Unsub')


__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/




Archive powered by MHonArc 2.6.24.

Top of Page