<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Docs:<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><a href="http://doc.qt.io/qt-5/qsqlquery.html#exec">http://doc.qt.io/qt-5/qsqlquery.html#exec</a></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><a href="http://doc.qt.io/qt-5/qsqlquery.html#exec-1">http://doc.qt.io/qt-5/qsqlquery.html#exec-1</a></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Python 3 PyQt5 QtSql.py:</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:"DejaVu Sans Mono";font-size:9pt"><span style="color:rgb(0,0,128);font-weight:bold">def </span>exec(<span style="color:rgb(148,85,141)">self</span>, p_str): <span style="color:rgb(128,128,128);font-style:italic"># real signature unknown; restored from __doc__<br></span><span style="color:rgb(128,128,128);font-style:italic"> """ exec(self, str) -> bool """<br></span><span style="color:rgb(128,128,128);font-style:italic"> </span><span style="color:rgb(0,0,128);font-weight:bold">return False<br></span><span style="color:rgb(0,0,128);font-weight:bold"><br></span><span style="color:rgb(0,0,128);font-weight:bold">def </span>exec_(<span style="color:rgb(148,85,141)">self</span>, p_str=<span style="color:rgb(0,0,128);font-weight:bold">None</span>): <span style="color:rgb(128,128,128);font-style:italic"># real signature unknown; restored from __doc__ with multiple overloads<br></span><span style="color:rgb(128,128,128);font-style:italic"> """<br></span><span style="color:rgb(128,128,128);font-style:italic"> exec_(self, str) -> bool<br></span><span style="color:rgb(128,128,128);font-style:italic"> exec_(self) -> bool<br></span><span style="color:rgb(128,128,128);font-style:italic"> """<br></span><span style="color:rgb(128,128,128);font-style:italic"> </span><span style="color:rgb(0,0,128);font-weight:bold">return False</span></pre><br clear="all"></div><div style="font-family:tahoma,sans-serif" class="gmail_default">This means that you can only invoke the no-parameter <a href="http://doc.qt.io/qt-5/qsqlquery.html#exec-1">http://doc.qt.io/qt-5/qsqlquery.html#exec-1</a> via `exec_()` and not `exec()`, which I didn't understand when trying to call it.</div><div style="font-family:tahoma,sans-serif" class="gmail_default"><br></div><div style="font-family:tahoma,sans-serif" class="gmail_default">Is this required/intentional?<br></div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span style="font-family:tahoma,sans-serif">Kindest,</span></div><div><span style="font-family:tahoma,sans-serif">Jonathan</span></div></div></div></div></div>
</div>