[QGIS-Developer] DBManager save querys only saves selected code - Bug or Feature?

Paolo Cavallini cavallini at faunalia.it
Sun Jul 21 02:11:09 PDT 2019


Hi all.
I agree, the default should be save all. Having the option of savings only selected could be handy.
Cheers.

On 21 July 2019 10:29:21 CEST, Matthias Kuhn <matthias at opengis.ch> wrote:
>Hi,
>
>Is there any other software with this behavior to "save only selected"?
>
>Or a use case where this is desirable?
>
> From top of my mind I can't find anything and I think all our other 
>editors always save the full text, regardless of selection.
>
>Regards
>
>Matthias
>
>On 7/21/19 10:19 AM, Alexandre Neto wrote:
>> I agree that it can be a feature, but needs to be more explicit to
>the 
>> user.
>>
>> 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.
>>
>> Documentation alone won't be enough IMHO. So, maybe a check box with 
>> "Save selected only?
>>
>> Anyway, thanks for making saving available.
>>
>> Alex
>>
>> A Sáb, 20/07/2019, 18:27, Loïc Bartoletti <lbartoletti at tuxfamily.org 
>> <mailto:lbartoletti at tuxfamily.org>> escreveu:
>>
>>     Hi Alexandre,
>>
>>     It's my bad, I used _getSqlQuery
>>    
><https://github.com/lbartoletti/QGIS/blob/master/python/plugins/db_manager/dlg_sql_window.py#L557>
>>     insted of self.editSql.text().
>>
>>     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.
>>
>>     Regards,
>>
>>     Loïc
>>
>>     Le 20/07/2019 à 17:04, Alexandre Neto a écrit :
>>>     Hi,
>>>
>>>     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.
>>>
>>>     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.
>>>
>>>     But, when I turn of my project and open it again, surprise
>>>     surprise, only the selected part is in the Query.
>>>
>>>     Bug or feature?
>>>
>>>     Alex Neto
>>>
>>>     _______________________________________________
>>>     QGIS-Developer mailing list
>>>     QGIS-Developer at lists.osgeo.org 
><mailto:QGIS-Developer at lists.osgeo.org>
>>>     List
>info:https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>>    
>Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>     _______________________________________________
>>     QGIS-Developer mailing list
>>     QGIS-Developer at lists.osgeo.org
><mailto:QGIS-Developer at lists.osgeo.org>
>>     List info:
>https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>     Unsubscribe:
>https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>>
>> _______________________________________________
>> QGIS-Developer mailing list
>> QGIS-Developer at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

-- 
Sorry for being short
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190721/03e1fade/attachment-0001.html>


More information about the QGIS-Developer mailing list