Revision 2288
Added by Aaron Marcuse-Kubitza over 12 years ago
map | ||
---|---|---|
22 | 22 |
import Parser |
23 | 23 |
import profiling |
24 | 24 |
import sql |
25 |
import sql_gen |
|
25 | 26 |
import streams |
26 | 27 |
import strings |
27 | 28 |
import term |
... | ... | |
297 | 298 |
# Fetch rows |
298 | 299 |
if by_col: limit = 0 # only fetch column names |
299 | 300 |
else: limit = n |
300 |
cur = sql.select(in_db, sql.qual_name(in_db, schema, table),
|
|
301 |
limit=limit, start=start, cacheable=False, table_is_esc=True)
|
|
301 |
cur = sql.select(in_db, sql_gen.Table(table, schema), limit=limit,
|
|
302 |
start=start, cacheable=False)
|
|
302 | 303 |
col_names = list(sql.col_names(cur)) |
303 | 304 |
|
304 | 305 |
if by_col: |
Also available in: Unified diff
bin/map: Switched to using sql_gen rather than table_is_esc