Must be seeing things... but why:

Qt Code:
  1. sql = "SELECT * FROM garmin_packets WHERE unit_imei=? AND fmi_packet_id=? AND unique_id=?";
  2. queryCheck.prepare(sql);
  3. queryCheck.bindValue(0, this->connAvlImei);
  4. queryCheck.bindValue(1, FMI_A607_DRIVER_ID_UPDATE);
  5. queryCheck.bindValue(2, driver_id.change_id);
  6. queryCheck.exec ( sql );
To copy to clipboard, switch view to plain text mode 

produces this:
Qt Code:
  1. "SELECT * FROM garmin_packets WHERE unit_imei=? AND fmi_packet_id=? AND unique_id=?"
  2. QSqlError(-1, "QPSQL: Unable to create query", "ERROR: operator does not exist: character =?
  3. LINE 1: SELECT * FROM garmin_packets WHERE unit_imei=? AND fmi_packe...
  4.  
  5. HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
  6. ")
To copy to clipboard, switch view to plain text mode 

???

Btw I made sure to check my stupidity and caffeine levels... all checked out inside reasonable range...