(name, table)
| 375 | colnamemaps[table] = m |
| 376 | |
| 377 | def col(name, table): |
| 378 | try: |
| 379 | return colnamemaps[table][name] |
| 380 | except KeyError: |
| 381 | if cast_nulls: |
| 382 | return sql.cast(sql.null(), types[name]).label(name) |
| 383 | else: |
| 384 | return sql.type_coerce(sql.null(), types[name]).label(name) |
| 385 | |
| 386 | result = [] |
| 387 | for type_, table in table_map.items(): |