On Wed, May 11, 2016 at 10:37 AM, Piotr Dobrogost
Ah, ok. The problem is that the "sql" parameter in your executor
function has not yet been compiled for the dialect in use. Try this
instead:
from __future__ import print_function
import sqlalchemy as sa
engine = sa.create_engine(
'oracle://',
strategy='mock',
executor=lambda sql, *multiparams, **params: print(sql.compile(bind=engine))
)
metadata = sa.MetaData()
t = sa.Table(
'_acl',
metadata,
sa.Column('_id', sa.Integer, primary_key=True),
)
metadata.create_all(engine)
engine.execute(t.select())
Simon