<div dir="auto">I agree that it can be a feature, but needs to be more explicit to the user.<div dir="auto"><br></div><div dir="auto">My problem is that I was creating several instructions and running them one by one. Then, in the end, I wanted to save everything and didn't realize that there was a selection.</div><div dir="auto"><br></div><div dir="auto">Documentation alone won't be enough IMHO. So, maybe a check box with "Save selected only?<div dir="auto"><br></div><div dir="auto">Anyway, thanks for making saving available.</div><div dir="auto"><br></div><div dir="auto">Alex</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">A Sáb, 20/07/2019, 18:27, Loïc Bartoletti <<a href="mailto:lbartoletti@tuxfamily.org" target="_blank" rel="noreferrer">lbartoletti@tuxfamily.org</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p>Hi Alexandre,</p>
    <p>It's my bad, I used <a href="https://github.com/lbartoletti/QGIS/blob/master/python/plugins/db_manager/dlg_sql_window.py#L557" rel="noreferrer noreferrer" target="_blank">_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="m_7263121919806318418m_-2844205611132673370moz-cite-prefix">Le 20/07/2019 à 17:04, Alexandre Neto a
      écrit :<br>
    </div>
    <blockquote type="cite">
      
      <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="m_7263121919806318418m_-2844205611132673370mimeAttachmentHeader"></fieldset>
      <pre class="m_7263121919806318418m_-2844205611132673370moz-quote-pre">_______________________________________________
QGIS-Developer mailing list
<a class="m_7263121919806318418m_-2844205611132673370moz-txt-link-abbreviated" href="mailto:QGIS-Developer@lists.osgeo.org" rel="noreferrer noreferrer" target="_blank">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="m_7263121919806318418m_-2844205611132673370moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="m_7263121919806318418m_-2844205611132673370moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
    </blockquote>
  </div>

_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" rel="noreferrer noreferrer" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div>