Re: Incompatible Data Type?

Rich Shepard <[email protected]>
Newsgroups gmane.comp.python.db.pysqlite.user
Message-ID <[email protected]>
On Tue, 26 Dec 2006, Adrian Klaver wrote:

> I tried to replicate the problem and could not. I suspect it is the self.*
> variables.

Adrian,

   I replaced the 'self.va' in the embedded SQL with
'self.valphaVal.GetValue()' because that's the method used to assign the
widget's contents to self.va. The correct numeric value is printed in each
function and bound method, but within the embedded SQL it generates the same
error:

   File "/data1/eikos/variablePage.py", line 362, in OnVarSave
     self.appData.cur.execute(stmt1,(self.vn, self.vd, self.vp, self.vs,
self.vr,
pysqlite2.dbapi2.InterfaceError: Error binding parameter 9 - probably
unsupported type.

   This makes absolutely no sense to me. And it's certainly resisting all my
efforts to fix or work around it. Sigh.

Thanks,

Rich

-- 
Richard B. Shepard, Ph.D.               |    The Environmental Permitting
Applied Ecosystem Services, Inc.(TM)    |            Accelerator
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.