<div class="gmail_quote">On Thu, Dec 16, 2010 at 1:46 AM, Noli Sicad <span dir="ltr">&lt;<a href="mailto:nsicad@gmail.com">nsicad@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


Is
there simple way to delete the table in the database, not using SQL<br>
statement / query?<br></blockquote><div></div><div>PG_manager -&gt; delete table/view. Why not?<br>Cheers.<br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


Thanks.<br>
<br>
Noli<br>
<br>
On 12/16/10, Ricardo Filipe Soares Garcia da<br>
<div><div></div><div class="h5">&lt;<a href="mailto:ricardo.garcia.silva@gmail.com">ricardo.garcia.silva@gmail.com</a>&gt; wrote:<br>
&gt; Hi all<br>
&gt; To celebrate the fixing of this bug by brushtyler (Guiseppe maybe?), I<br>
&gt; have updated &#39;custom db query&#39; to version 0.4.<br>
&gt; The plugin&#39;s window is now modeless, and it stays on top of the QGIS<br>
&gt; main window. So you can interact with the rest of QGIS while having<br>
&gt; the plugin open. This way you can, for example remove your query<br>
&gt; layers from the map.<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Dec 14, 2010 at 7:03 PM, Luiz Motta &lt;<a href="mailto:motta.luiz@gmail.com">motta.luiz@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Hi Guiseppe,<br>
&gt;&gt; Sorry for the mistake on the author of the provider.<br>
&gt;&gt; I made both test, for both plugins, &#39;Custom database query&#39; and &#39;Rt  Sql<br>
&gt;&gt; Layer, and<br>
&gt;&gt; with the same result.<br>
&gt;&gt; When the table is inside public&#39;s schema don&#39;t have message of error,<br>
&gt;&gt; otherwise,<br>
&gt;&gt; i have the message of error, but the layer is created perfect.<br>
&gt;&gt; I saved the project of QGIS (with the created layer) and open again this<br>
&gt;&gt; project the message of error was showed.<br>
&gt;&gt; In this point isolat the  factor of plugin, then, have some problem with<br>
&gt;&gt; provider.<br>
&gt;&gt; Regards,<br>
&gt;&gt; Luiz Motta<br>
&gt;&gt; 2010/12/14 Giuseppe Sucameli &lt;<a href="mailto:sucameli@faunalia.it">sucameli@faunalia.it</a>&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Hi Luiz and Ricardo,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Tue, Dec 14, 2010 at 1:04 PM, Luiz Motta &lt;<a href="mailto:motta.luiz@gmail.com">motta.luiz@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; The author of provider told me about this problem, see ticket<br>
&gt;&gt;&gt;&gt; (<a href="https://trac.osgeo.org/qgis/ticket/3329" target="_blank">https://trac.osgeo.org/qgis/ticket/3329</a>).<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; to Luiz: as Ricardo wrote, he is the author of the plugin<br>
&gt;&gt;&gt; (CustomDatabaseQuery),<br>
&gt;&gt;&gt; not the author of the provider at all.<br>
&gt;&gt;&gt; BTW, I&#39;m the author of both the patches for executing a custom query with<br>
&gt;&gt;&gt; postgres and spatialite provider, so I&#39;m one of the guys you&#39;re searching<br>
&gt;&gt;&gt; for :)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; to Ricardo: the ticket told about an &quot;Error for postgres&#39;s provider&quot;, not<br>
&gt;&gt;&gt; custom<br>
&gt;&gt;&gt; database query plugin issue.<br>
&gt;&gt;&gt; Furthermore, the QGis trac is not for plugins&#39; issues, except for those<br>
&gt;&gt;&gt; that are<br>
&gt;&gt;&gt; in trunk. For this reason we&#39;re working to create a plugins trac.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; If you&#39;re sure the issue is only related to your plugin source code and<br>
&gt;&gt;&gt; not to the<br>
&gt;&gt;&gt; qgis functions called in your code, you should close the ticket as<br>
&gt;&gt;&gt; invalid.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; SELECT<br>
&gt;&gt;&gt;&gt;   <a href="http://l.id" target="_blank">l.id</a> AS gid, l.the_geom AS the_geom<br>
&gt;&gt;&gt;&gt; FROM gis.tl_20101117_101056_limite l<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Doesn&#39;t anyone confirm that it&#39;s a provider&#39;s issue, not just a plugin<br>
&gt;&gt;&gt; issue??<br>
&gt;&gt;&gt; Please, could you try to execute the same query using the RT Sql Layer<br>
&gt;&gt;&gt; plugin,<br>
&gt;&gt;&gt; in order to confirm the provider issue?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks a lot.<br>
&gt;&gt;&gt; Cheers.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Please inform about your enviroment.<br>
&gt;&gt;&gt;&gt; It  can be util for understand what is happened.<br>
&gt;&gt;&gt;&gt; Regards,<br>
&gt;&gt;&gt;&gt; Luiz Motta<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; 2010/12/14 Giuseppe Sucameli &lt;<a href="mailto:sucameli@faunalia.it">sucameli@faunalia.it</a>&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Hi Luiz,<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; On Tue, Dec 14, 2010 at 2:43 AM, Luiz Motta &lt;<a href="mailto:motta.luiz@gmail.com">motta.luiz@gmail.com</a>&gt;<br>
&gt;&gt;&gt;&gt;&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; I am testing the &#39;Custom database query&#39; plugins, where, i use layers<br>
&gt;&gt;&gt;&gt;&gt;&gt; outside public&#39;s schema.<br>
&gt;&gt;&gt;&gt;&gt;&gt; The plugin create the layer, but, before, i receive the message error<br>
&gt;&gt;&gt;&gt;&gt;&gt; about cursor od database.<br>
&gt;&gt;&gt;&gt;&gt;&gt; If the layers are inside public&#39;s schema not appear message.<br>
&gt;&gt;&gt;&gt;&gt;&gt; The one ticket is open, number 3329.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I&#39;m unable to reproduce it, both &#39;Custom database query&#39; and &#39;RT Sql<br>
&gt;&gt;&gt;&gt;&gt; Layer&#39; plugins<br>
&gt;&gt;&gt;&gt;&gt; seems to work with tables not in the public schema.<br>
&gt;&gt;&gt;&gt;&gt; Maybe does your layer contain invalid geometries?<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Cheers.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; --<br>
&gt;&gt;&gt;&gt;&gt; Giuseppe Sucameli<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Giuseppe Sucameli<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; ___________________________ ___ __<br>
&gt; Ricardo Garcia Silva<br>
&gt; _______________________________________________<br>
&gt; Qgis-developer mailing list<br>
&gt; <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
&gt;<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Giuseppe Sucameli<br><br>