Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-39124

sqlite3_enable_load_extension does not work anymore

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.3.0
    • SQL Support
    • None
    • Linux x64

    Description

      The following code works perfectly with Qt 5.2 but not with Qt 5.3.
      It gives me a SEGFAULT at the sqlite3_enable_load_extension first line of code.

      QVariant v = db.driver()->handle();
      if(v.isValid() && qstrcmp(v.typeName(), "sqlite3*") == 0)
      {
      sqlite3 *handle = *static_cast<sqlite3 **>(v.data());

      if(handle != 0) sqlite3_enable_load_extension(handle, 1);
      }

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mabrand Mark Brand
            olivierb Olivier Boucard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes