Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Casse sensitive mysql search with Qt
Forum Updated to NodeBB v4.3 + New Features

Casse sensitive mysql search with Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
mysql
2 Posts 2 Posters 752 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    laetis
    wrote on last edited by
    #1

    Hi,

    I want to do a casse sensitive search in mysql syntax using Qt. I know that to do a casse sensitive mysql search you should do something like this:

    SELECT * From GeoAndEnergies where SMILES='c1ccc(C2=NN=NC2=C2C=CC=CN2)nc1'
    AND BINARY SMILES='c1ccc(C2=NN=NC2=C2C=CC=CN2)nc1';

    I tryied to use the same syntax in Qt and it is not working at all, in the sense that the mysql crash.

    Does anyone know what I should use?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Shouldn't you use COLLATE for that ?

      In any case, what do you mean by crash ? The query fails or the application crashes ? If the former, did you check the error returned by QSqlQuery ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved