Revision 11918
Added by Aaron Marcuse-Kubitza about 11 years ago
map | ||
---|---|---|
360 | 360 |
# Fetch rows |
361 | 361 |
if by_col: limit = 0 # only fetch column names |
362 | 362 |
else: limit = n |
363 |
try: |
|
364 |
cur = sql.select(in_db, table, limit=limit, start=start, |
|
365 |
recover=True, cacheable=False) |
|
366 |
except sql.DoesNotExistException: |
|
367 |
table = None |
|
368 |
col_names = [] |
|
369 |
rows = [] |
|
370 |
else: |
|
371 |
col_names = list(sql.col_names(cur)) |
|
372 |
rows = sql.rows(cur) |
|
363 |
cur = sql.select(in_db, table, limit=limit, start=start, |
|
364 |
recover=True, cacheable=False) |
|
365 |
col_names = list(sql.col_names(cur)) |
|
366 |
rows = sql.rows(cur) |
|
373 | 367 |
|
374 | 368 |
# inline metadata value columns |
375 | 369 |
col_default_values = {} |
Also available in: Unified diff
bugfix: bin/map: in_is_db: don't ignore errors when the table does not exist, because these prevent an errexit and allow an import to continue when a staging table is missing. suppressing this error had previously been necessary because metadata-only tables (Source/) used to not have installed staging tables, and the program had to react accordingly.