diff -r 7c65c0cdd3c8 examples/versioning/history_meta.py
--- a/examples/versioning/history_meta.py Tue Jun 14 19:57:21 2011 -0400
+++ b/examples/versioning/history_meta.py Thu Jun 16 12:04:43 2011 -0400
@@ -35,7 +35,7 @@
col.unique = False
if super_mapper and col_references_table(column, super_mapper.local_table):
- super_fks.append((col.key, list(super_history_mapper.base_mapper.local_table.primary_key)[0]))
+ super_fks.append((col.key, list(super_history_mapper.local_table.primary_key)[0]))
cols.append(col)
as you can see, the foreign key generation is pulling from the "base" mapper which isn't the case in a multilevel situation, it needs to pull the FKs from the immediate super-mapper.
> --
> You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
> To post to this group, send email to sqlal...@googlegroups.com.
> To unsubscribe from this group, send email to sqlalchemy+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
>
I am trying to connect to another machine to access the mysql database. I have a firewall on one machine which restricts alot of the accesses from outside.
I am doing something like:
create_engine('mysql://root:p...@192.168.1.10/database',poolClass=NullPool)
Could someone be so kind and tell me what needs to be open on the other machine to connect and what the default port is?
Thanks,
Gary C
technically the logic there should search up the chain of mappers for an FK in a parent table, its still making a bit of an assumption.
--
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sqlalchemy/-/PK3kVAsuh5QJ.