MYSQL 4.1 INT datatype issues with CF7

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default MYSQL 4.1 INT datatype issues with CF7

    When I try to pull my SMALLINT, MEDIUMINT, and INT fields from my MYSQL 4.1
    tables, I get a value like "4294967307". However, once I change the datatypes
    to BIGINT, they work just fine and I can pull the actual values.

    I am running ColdFusion MX 7 with hotfix3 and the latest MYSQL JDBC driver. I
    have seen this problem on my Windows 2003 CF7 installation as well as when
    running it locally as the standalone 8500 installation. It isn't isolated to
    one table or datasource, it happens in them all.

    Also, for the record, the exact same cfqueries and mysql tables work fine with
    CFMX 6.1. I am in the process of migrating to MX7 though.

    Any suggestions? This isn't a major problem, I've just been chaning all my
    datatypes to BIGINT and things work fine.

    William Haun - haunw@at@spcollege)dot(com

    rwhaun Guest

  2. Similar Questions and Discussions

    1. MyCC & MySQL compatability issues
      I'm new to MySQL and I have just downloaded and installed MySQL 5.0.24-windows together with MyCC 0.9.2-beta from MySQL.com. I have managed to...
    2. MySQL Intermittent Connection Issues
      We periodically recieve these connection errors with our CF MX6.1 and MySQL 3.23.58, running on the same Red Hat Enterprise 3 linux box. Error...
    3. ASP.NET Insert into bit datatype
      Hey, I'm using ASP.NET vb and sql server 2000, basically I have a form with a few yes/no radio buttons and they insert into table with bit field...
    4. citext datatype
      Does anyone use citext, http://gborg.postgresql.org/project/citext/projdisplay.php, the case insensitive text datatype? Are there any negative...
    5. Balancing speed against OO design - optimization issues with PHP/MySQL
      Hi all, a request for opinions, please. I am designing a smallish application to manage members of several committees of a particula...
  3. #2

    Default Re: MYSQL 4.1 INT datatype issues with CF7

    > When I try to pull my SMALLINT, MEDIUMINT, and INT fields from my MYSQL
    4.1
    > tables, I get a value like "4294967307". However, once I change the
    datatypes
    > to BIGINT, they work just fine and I can pull the actual values.
    >
    > I am running ColdFusion MX 7 with hotfix3 and the latest MYSQL JDBC
    driver. I
    > have seen this problem on my Windows 2003 CF7 installation as well as when
    > running it locally as the standalone 8500 installation. It isn't isolated
    to
    > one table or datasource, it happens in them all.
    >
    > Also, for the record, the exact same cfqueries and mysql tables work fine
    with
    > CFMX 6.1. I am in the process of migrating to MX7 though.
    >
    > Any suggestions? This isn't a major problem, I've just been chaning all
    my
    > datatypes to BIGINT and things work fine.
    I think I had the same problem and I solved it by upgrading to the latest
    jdbc driver (from the 3.2 series).

    --
    <mack />


    Neculai Macarie Guest

  4. #3

    Default Re: MYSQL 4.1 INT datatype issues with CF7

    Thanks for the tip. I downloaded the
    [url]http://dev.mysql.com/downloads/connector/j/3.2.html[/url] and it solved the problem.
    Unfortunately, that version is still in ALPHA phase so I'm a bit wary about
    using it in production.

    For now, I may just continue with my workaround until a stable version of JDBC
    3.2 is released.

    Anyone think I should submit this as a bug report for CFMX7? or is it a MYSQL
    JDBC bug? I didn't have the problem with JDBC 3.1 on CFMX6.1. So that makes
    me think it is more of a CF7 issue.

    rwhaun Guest

  5. #4

    Default Re: MYSQL 4.1 INT datatype issues with CF7

    rwhaun wrote:
    > Thanks for the tip. I downloaded the
    > [url]http://dev.mysql.com/downloads/connector/j/3.2.html[/url] and it solved the problem.
    > Unfortunately, that version is still in ALPHA phase so I'm a bit wary about
    > using it in production.
    >
    > For now, I may just continue with my workaround until a stable version of JDBC
    > 3.2 is released.
    >
    > Anyone think I should submit this as a bug report for CFMX7? or is it a MYSQL
    > JDBC bug? I didn't have the problem with JDBC 3.1 on CFMX6.1. So that makes
    > me think it is more of a CF7 issue.
    >
    This sounds to me like a driver issue--if using a new driver fixes the
    problem, then it's definitely the JDBC driver, not CF.

    Matt

    --
    Matt Woodward
    [email]mpwoodward@gmail.com[/email]
    Team Macromedia - ColdFusion
    mpwoodward *TMM* Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139