<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi Alexandre,</p>
    <p>It's my bad, I used <a moz-do-not-send="true"
href="https://github.com/lbartoletti/QGIS/blob/master/python/plugins/db_manager/dlg_sql_window.py#L557">_getSqlQuery</a>
      insted of self.editSql.text(). <br>
    </p>
    <p>For me a feature must be documented and for this one the user
      must have the choice between the full text or the selected part.
      So it's a bug or I add this option and the doc.</p>
    <p>Regards,</p>
    <p>Loïc<br>
    </p>
    <div class="moz-cite-prefix">Le 20/07/2019 à 17:04, Alexandre Neto a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+H0G_HV53B81c1g8dUVU2WKCczUVcbNQmV=4G0Z+PK=c+SqsA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Hi,</div>
        <div><br>
        </div>
        <div>I had some frustrations with the DB Manager save query
          functionality. At some point I finally understood that, if
          there is some selected code, only that part is saved.</div>
        <div><br>
        </div>
        <div>To me it's weird, because when you save, the rest of the
          code is maintained in the SQL editor, and the name of the
          query is showned in the topo.</div>
        <div><br>
        </div>
        <div>But, when I turn of my project and open it again, surprise
          surprise, only the selected part is in the Query.</div>
        <div><br>
        </div>
        <div>Bug or feature?</div>
        <div><br>
        </div>
        <div>Alex Neto<br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
QGIS-Developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
    </blockquote>
  </body>
</html>