| Subject: | BIGINT in scientific notation |
|---|---|
| From: | "Mr R 101" <webforumsuser@xxxxxxxxxxxxxx> |
| Date: | Wed, 16 Jul 2008 22:44:25 +0000 (UTC) |
| Newsgroups: | macromedia.coldfusion.database_access |
Hi,
New here and new to CF8. I'm using MySQL 5.0.51b with the latest JDBC
connector and am getting unsigned BIGINT columns larger than 10^12 back in
scientific notation instead of a whole number. Here's an example:
<cfquery name="get_bigint" datasource="ds">
select cuid,convert(cuid,signed) as c_cuid
from ctable
where id=17
</cfquery>
<cfdump var="#get_bigint#">
cuid is an unsigned BIGINT in ctable. In the CF dump, cuid is displayed in
scientific notation and c_cuid is displayed as a whole number. If I try to use
cuid, say as a URL parameter, it also ends up in scientific notation, which is
obviously undesirable. Is there a configuration setting I need to change
somewhere or is the CF / JDBC way to deal with this to use CAST / CONVERT on
BIGINT columns to ensure they stay in whole number format?
Thanks
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Multple Joins, Ian Skinner |
|---|---|
| Next by Date: | Re: CMFX 7, MYSQL5, and UTF8, kittyb |
| Previous by Thread: | CF error: The listener could not find any available service handlers...?, rpeters1983 |
| Next by Thread: | Re: CF8, Linux and ODBC, Jon Heys |
| Indexes: | [Date] [Thread] [Top] [All Lists] |