On Sep 19, 2013, at 11:09 AM, [email protected] wrote:

> Hi everyone,
> 
> I'm using SQLalchemy 0.7.10 and I'm encountering some problems trying to 
> insert
> records inside a table in a blob column.
> The error I get is the following:
> 
> StatementError: 'SQLiteExecutionContext' object has no attribute 
> 'fire_sequence'
> (original cause: AttributeError: 'SQLiteExecutionContext' object has no 
> attribute
> 'fire_sequence') 'INSERT INTO r_2_sti (id, iter, data) VALUES (?, ?, ?)' 
> [{'data':
> 'wer', 'iter': -1}]
> 
> It's quite difficult for me to build a test case of the error, since it 
> happens
> inside a large program, but in general the code that generates the error is
> something like this:
> 
> from sqlalchemy import *
> 
> engine = create_engine('sqlite:///test.db', echo=True)
> m = MetaData()
> t = Table('t', m, Column('data', LargeBinary))
> m.create_all(engine)
> engine.execute(t.insert(), {'data':b'abc'}, {'data':b'xyz'})
> 
> The problem is that the example code perfectly works! So, does anyone has an 
> idea of
> what I am possibly doing wrong?
> Thanks in advance!

you might have a Sequence() construct listed as a "default" somewhere, it's not 
clear.  a stack trace would say more, but I think searching for the term 
"Sequence" would be the first course of action.



Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to