<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p>
<p dir="auto">I was running into a case where I wanted to support a polymorphic one to many relation, where the different related tables have primary keys of different types.  The mapper was not allowing that.  I provide a patch and a bit of  example code which expresses a possible fix.</p>
<hr>
<p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/1348/test_multi_poly.py">test_multi_poly.py</a> | <a href="../wiki/imported_issue_attachments/1348/orm_properties.diff">orm_properties.diff</a> | <a href="../wiki/imported_issue_attachments/1348/sql_util.py.diff">sql_util.py.diff</a> | <a href="../wiki/imported_issue_attachments/1348/ticket_610_1348_unified.diff">ticket_610_1348_unified.diff</a></p>
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p>
<p dir="auto">Using a bound parameter more than once in a select fails when using a paramstyle of 'qmark'.<br>
Attached is a test case.  Also attached is a hack to the get_params method to retain the full list of parameters.</p>
<p dir="auto">The real problem is sql.ClauseParameters doesn't allow duplicated keys.  Maybe it should have an append method that<br>
get_params() would use instead of set_parameter().</p>
<p dir="auto">--Bill</p>
<hr>
<p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/280/get_params.diff">get_params.diff</a> | <a href="../wiki/imported_issue_attachments/280/test_bindparam.py">test_bindparam.py</a></p>