Changes between Version 1 and Version 2 of Ticket #27562


Ignore:
Timestamp:
03/29/19 00:47:57 (3 years ago)
Author:
slelievre
Comment:

This should be an easy ticket to fix for a beginner.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27562 – Description

    v1 v2  
    1 In `src/sage/databases/sql_db.py`, lines 465--467,
     1In `src/sage/databases/sql_db.py`, lines 465--467 currently read
    22{{{
    33            if query_dict['table_name'] not in skel:
     
    55                    + str(query_dict['table_name']) + ".")
    66}}}
    7 should be
     7but should instead read
    88{{{
    99            if query_dict['table_name'] not in skel:
    10                 raise ValueError("Database has no table %s"
    11                     % query_dict['table_name'])
     10                raise ValueError("database has no table %s"
     11                                 % query_dict['table_name'])
    1212}}}
     13
     14The current version is in particular missing a space between
     15"has no table" and the name, so errors look like:
     16{{{
     17File "src/sage/databases/sql_db.py", line 308, in sage.databases.sql_db._create_print_table
     18Failed example:
     19    r = SQLQuery(DB, {'table_name':'simon', 'display_cols':['a1'], 'expression':['b2','<=', 6]})
     20Exception raised:
     21...
     22ValueError: Database has no tablesimon.
     23}}}
     24instead of
     25{{{
     26File "src/sage/databases/sql_db.py", line 308, in sage.databases.sql_db._create_print_table
     27Failed example:
     28    r = SQLQuery(DB, {'table_name':'simon', 'display_cols':['a1'], 'expression':['b2','<=', 6]})
     29Exception raised:
     30...
     31ValueError: database has no table simon
     32}}}