Hi,

I experience very strange behaviour in version 0.9.1 (no problem in version 
0.8.4) - I can't image that it is problem in SQLAlchemy but I don't see why 
I am getting error running this code:


tbl_session = Table('SESSION', metadata, autoload=True)

stmt = tbl_session.select(tbl_session).where(tbl_session.c.SID == sid)
result = conn.execute(stmt).fetchone()
       
if result != None:

and here when comparing result to None I am getting:

Unexpected error: <type 'exceptions.TypeError'> 'NoneType' object is not 
iterable


CREATE TABLE `SESSION` (`SID` VARCHAR(32) NOT NULL,`DATA` MEDIUMTEXT 
NULL,`TIME_STAMP` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE 
CURRENT_TIMESTAMP,PRIMARY KEY (`SID`)
)COLLATE='utf8_general_ci'ENGINE=InnoDB;

The same code work perfectly in version 0.8.4

Sorry if I missed something obvious.  

-- jacek






 




-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to