Results 1 to 9 of 9

Thread: escape input for mysql server

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: escape input for mysql server

    Quote Originally Posted by patrik08 View Post
    Yes work fine on sqlite or other db type != not on mysql Collation special like CHARSET=utf-8 or other koi8r .... qt take from CHARSET QLocale and pusch on DBs and not read "SHOW COLUMNS FROM TABLE" to become the correct CHARSET, if table having iso latin 1 an OS QLocale is the same works....
    If you have the database set incorrectly then don't expect everything to work.


    Quote Originally Posted by tpf80 View Post
    I also noticed that I can use "bindValue()" for select statements, even though the examples only show them for inserts:

    (...)

    is this a proper use of "bindValue()"?
    Sure

  2. The following user says thank you to wysota for this useful post:

    tpf80 (17th June 2007)

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.