(name, table)
| 366 | colnamemaps[table] = m |
| 367 | |
| 368 | def col(name, table): |
| 369 | try: |
| 370 | return colnamemaps[table][name] |
| 371 | except KeyError: |
| 372 | if cast_nulls: |
| 373 | return sql.cast(sql.null(), types[name]).label(name) |
| 374 | else: |
| 375 | return sql.type_coerce(sql.null(), types[name]).label(name) |
| 376 | |
| 377 | result = [] |
| 378 | for type_, table in table_map.items(): |