Results 1 to 2 of 2

Thread: Qt MySQL

  1. #1
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    188
    Qt products
    Qt4
    Platforms
    Windows

    Default Qt MySQL

    When I create a table in my application with
    Qt Code:
    1. ....
    2. create table if not exists table_name
    3. ...
    4. UPHOLE_DEPTH float(16,1) unsigned zerofill default NULL,
    5. ....
    To copy to clipboard, switch view to plain text mode 
    When I insert a record into the talbe,error:
    Out of range value for column 'UPHOLE_DEPTH' at row 1 QMYSQL3: unable to execute statement

  2. #2
    Join Date
    Feb 2009
    Posts
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt MySQL

    Hi,

    Please paste more code, probably it's mysql statement problem not qt,
    try first the same in mysql console or mysql query browser.

Similar Threads

  1. QT 4.5 QMYSQL and Mysql 4.1 servers does not work
    By elektritter in forum Qt Programming
    Replies: 1
    Last Post: 21st July 2009, 15:53
  2. Accessing xampp mysql database
    By synack in forum Newbie
    Replies: 8
    Last Post: 19th March 2009, 09:08
  3. mysql configuration with qt
    By bala in forum Installation and Deployment
    Replies: 3
    Last Post: 6th November 2007, 11:02
  4. MySQL starting problem
    By shamik in forum General Discussion
    Replies: 5
    Last Post: 25th April 2007, 07:20
  5. Qt 4.1.4 & Mysql 5 on Linux x64
    By bothapn in forum Installation and Deployment
    Replies: 7
    Last Post: 4th August 2006, 13:23

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.