Project

General

Profile

« Previous | Next » 

Revision 2053

bin/map: Always pass qual_name(table) to sql.select(). This is possible now that qual_name() can handle None schemas.

View differences:

bin/map
293 293
                if sep == '': # only the table name was specified
294 294
                    table = schema
295 295
                    schema = None
296
            table_is_esc = False
297
            if schema != None:
298
                qual_table = sql.qual_name(in_db, schema, table)
299
                table_is_esc = True
300
            else: qual_table = table
301 296
            
302 297
            # Fetch rows
303 298
            if by_col: limit = 0 # only fetch column names
304 299
            else: limit = n
305
            cur = sql.select(in_db, qual_table, limit=limit, start=start,
306
                cacheable=False, table_is_esc=table_is_esc)
300
            cur = sql.select(in_db, sql.qual_name(in_db, schema, table),
301
                limit=limit, start=start, cacheable=False, table_is_esc=True)
307 302
            col_names = list(sql.col_names(cur))
308 303
            
309 304
            if by_col:

Also available in: Unified diff