MySQL InterfaceError

BartlebyScrivener rpdooling at gmail.com
Thu Jun 7 13:33:27 EDT 2007


On Jun 7, 10:09 am, "Joe" <j... at incomps.com> wrote:
>
> And, yes, printing the error message returns absolutely nothing.  The tuple
> following InterfaceError is both the error code and message.  Unfortunately,
> it will only give me (0, '') which isn't much help.
>

I'm on Google groups and can't see the first part of your original
message, so don't know what query you are using. But I get that
interface error when I attempt to interpolate values from something
other than a tuple.

E.g.

SELECT item from table where item like %s

If you try to use a string, say, instead of a string in a tuple,
you'll get an interface error.

That's the only time I've gotten it.

rd

> Thanks again!
>
> Jough





More information about the Python-list mailing list