On Sep 7, 10:39 pm, mcl <[EMAIL PROTECTED]> wrote:
> On 7 Sep, 14:11, Carsten Haese <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Fri, 2007-09-07 at 05:52 -0700, mcl wrote:
> > > > ValueError: invalid literal for int(): 0-
> > > > args = ('invalid literal for int(): 0-',)
>
> > > >
In message <[EMAIL PROTECTED]>, mcl
wrote:
> ValueError: invalid literal for int(): 0-
Could it be you have a MySQL column that is declared as some integer type,
but contains this funny "0-" value? So when MySQLdb tries to return it as a
Python integer, it fails to convert.
--
http://mail.python
On 7 Sep, 14:11, Carsten Haese <[EMAIL PROTECTED]> wrote:
> On Fri, 2007-09-07 at 05:52 -0700, mcl wrote:
> > > ValueError: invalid literal for int(): 0-
> > > args = ('invalid literal for int(): 0-',)
>
> > > =
> > > Thanks Richard
>
> > Sort of solved
On Fri, 2007-09-07 at 05:52 -0700, mcl wrote:
> > ValueError: invalid literal for int(): 0-
> > args = ('invalid literal for int(): 0-',)
> >
> > =
> > Thanks Richard
>
> Sort of solved it.
>
> On that particular table it did not like * for all fields
On 7 Sep, 12:08, mcl <[EMAIL PROTECTED]> wrote:
> I have just started with python and MySQL.
>
> I have a simple test for each of my tables.
>
> The first two work as expected, but the third 'qlooks', gives a
> ValueError.
>
> If I copy and paste the SQL in the traceback to phpMyAdmin, it works
> a