Hey,

I am trying to create a funky relationship where I want to take a
field in a table, take a portion of it and then use that portion to
create a relation. Is this even possible?

My relation is below

reseller = relation(Reseller,
    uselist = False,
    primaryjoin = func.substring(credits.c.billing_code, 3, 25) ==
Reseller.resellerid)

Any suggestions to make this happen?

--Dan

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to