Results 1 to 8 of 8

Thread: No query Unable to fetch row when ERROR , when trying to do a simple query

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: No query Unable to fetch row when ERROR , when trying to do a simple query

    Line 15 is pointless. Compare my code and Your.

  2. #2
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: No query Unable to fetch row when ERROR , when trying to do a simple query

    Can you access this database using the sqlite3 command line program and execute your query successfully? If not, then your Qt program certainly won't be able to either.

    Since you are specifying a relative file name for your database, you may be creating an empty file inadvertently by opening your database in a different working directory than you think.

    Try hard coding the fully qualified file path and see if that works and/or search your drive for your file name and see if you have another file created somewhere you did not intend, etc.
    Last edited by jefftee; 16th April 2015 at 17:28.

Similar Threads

  1. "no query to unable to fetch row"
    By Sziszke in forum Newbie
    Replies: 2
    Last Post: 28th March 2015, 12:34
  2. unable to run query
    By sachinmcajnu in forum Qt Programming
    Replies: 6
    Last Post: 11th March 2011, 12:14
  3. Replies: 2
    Last Post: 30th March 2010, 04:23
  4. Unable to return query using Mysql bindvalue
    By cobaltblue in forum Qt Programming
    Replies: 1
    Last Post: 20th February 2010, 22:29
  5. Unable to fetch data when searching through select query
    By sinha.ashish in forum Qt Programming
    Replies: 3
    Last Post: 10th April 2008, 14:06

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
  •  
Qt is a trademark of The Qt Company.