<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 6, 2015 at 9:16 AM, Glynn Clements <span dir="ltr"><<a href="mailto:glynn@gclements.plus.com" target="_blank">glynn@gclements.plus.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
Vaclav Petras wrote:<br>
<br>
> However, now I see at least 3 tests which were not failing before [3, 4,<br>
> 5]. It seems like a trivial issue caused by some automatic changes (percent<br>
> operator is missing). This issue should be visible on any machine.<br>
<br>
</span>The bug which is causing the test to fail has been present in<br>
v.db.addtable for 2 years (since r56701).<br>
<br>
If the tests only started failing recently, it can only be because of<br>
changes to how v.db.addtable was invoked.<br>
<br>
A database connection having a "schema" option where none existed<br>
before would seem likely. The error arises from:<br>
<br>
    if schema is not '':<br>
<span class="">        table = '%s.%s' (schema, table)<br></span></blockquote><div><br></div><div>The problem is related to the Python 3 support - the condition is wrong and schema is now empty unicode string instead of empty string (coming from db_connection()). I am not sure if unicode here is what we want, but that's a different problem, the condition works for any empty string now.</div><div><br></div><div>Anna</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br>
</span>where "schema" is set by:<br>
<br>
    kv = grass.db_connection()<br>
    database = kv['database']<br>
    driver = kv['driver']<br>
    schema = kv['schema']<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
</div></div></blockquote></div><br></div></div>