Results 1 to 3 of 3

Thread: QSqlQuery update query not working using SQLite

  1. #1
    Join Date
    Feb 2013
    Posts
    71
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QSqlQuery update query not working using SQLite

    Hi, I don't know why my QSqlquery update query is not working. I've already created the database with a filled table. Select querys work so i can read data but it seems im unable to write to it.I'm using Linux Kubuntu 12.10 and I can't seem to change the permissions on the file which i think may be the issue but does anyone have any tutorials or guides/walkthroughs i could look at that are for QT + SQLITE only?

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QSqlQuery update query not working using SQLite

    How does the update querry look like? Have you check the error which is returned? Normally it is quite self-explanatory.

  3. The following user says thank you to Lykurg for this useful post:

    Cyrebo (29th March 2013)

  4. #3
    Join Date
    Feb 2013
    Posts
    71
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QSqlQuery update query not working using SQLite

    Got it now thanks it was a syntax error haha!

Similar Threads

  1. QSqlQuery: Query Problem...
    By TCB13 in forum Newbie
    Replies: 2
    Last Post: 28th August 2011, 20:01
  2. QSqlQuery and non-sql query
    By zygmunt in forum Qt Programming
    Replies: 6
    Last Post: 19th January 2011, 18:44
  3. SQLITE - UPDATE query problem
    By Tomasz in forum Newbie
    Replies: 12
    Last Post: 5th September 2010, 20:27
  4. Complex query in QSqlQuery
    By xgoan in forum Qt Programming
    Replies: 20
    Last Post: 17th March 2008, 12:04
  5. [QT4][SQLITE] Database and query
    By agent007se in forum Newbie
    Replies: 10
    Last Post: 12th July 2006, 22:16

Tags for this Thread

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.