Re: problem with appending to a list, possibly mysqldb related
- From: John Salerno <johnjsal@xxxxxxxxxxxxxxx>
- Date: Thu, 31 Aug 2006 18:39:45 GMT
John Salerno wrote:
John Purser wrote:
I'd say you had a record with a null value for the namefirst field.
The join method don't like that.
Wow, you're right! I tried this:
if x[0] and not x[0] == 'NULL':
and sure enough it works after that. (Not sure if that's the best way to test, though. Just testing for NULL still produced the error, so I guessed that some namefirst fields were actually blank.)
Just tried again with:
if x[0]:
and that worked, so I guess NULL isn't a string value.
.
- Follow-Ups:
- Re: problem with appending to a list, possibly mysqldb related
- From: John Purser
- Re: problem with appending to a list, possibly mysqldb related
- References:
- problem with appending to a list, possibly mysqldb related
- From: John Salerno
- Re: problem with appending to a list, possibly mysqldb related
- From: John Purser
- Re: problem with appending to a list, possibly mysqldb related
- From: John Salerno
- problem with appending to a list, possibly mysqldb related
- Prev by Date: Re: problem with appending to a list, possibly mysqldb related
- Next by Date: SQLObject or SQLAlchemy?
- Previous by thread: Re: problem with appending to a list, possibly mysqldb related
- Next by thread: Re: problem with appending to a list, possibly mysqldb related
- Index(es):
Relevant Pages
|